samedi 28 octobre 2017

Laravel Forge with AWS nginx 404

I have started a laravel forge server with AWS, and added my laravel site which points to /public.

Now when I get to the site via ip I get 404 nginx error

here's my default nginx configuration:

# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/http://ift.tt/2zdv7C9;

server {
    listen 80;
    listen [::]:80;
    server_name przemek-wojtas.co.uk;
    root /home/forge/http://ift.tt/2iJnDjf;

    # FORGE SSL (DO NOT REMOVE!)
    # ssl_certificate;
    # ssl_certificate_key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-$
    ssl_prefer_server_ciphers on;
    ssl_dhparam /etc/nginx/dhparams.pem;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Content-Type-Options "nosniff";

    index index.html index.htm index.php;

    charset utf-8;

    # FORGE CONFIG (DOT NOT REMOVE!)
    include forge-conf/http://ift.tt/2zdv8Gd;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

I don't know what is wrong, I just used laravel forge to create new server, and created a new site from my git repository which works absolutely fine



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire