stephanediondev/readerself

New install: Error 404 (Nginx)

NerosTie opened this issue · 1 comments

After a new install, I have a 404 error file not found for mydomain.tld/readerself/setup.

I'm using Nginx and it's certainly a rewrite issue. But I don't know how to do.

Can you provide a nginx configuration?

Thanks

Solution:

server {
    server_name sub.domain.tld;
    root /var/www/readerself;
    access_log /var/log/nginx/readerself.access.log;
    error_log /var/log/nginx/readerself.error.log;

    index index.php index.html index.htm;
    try_files $uri $uri/ /index.php?$args;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
   }
}