stephanediondev / readerself

Replaced by a new version

Home Page:https://github.com/stephanediondev/feed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New install: Error 404 (Nginx)

NerosTie opened this issue · comments

commented

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

commented

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;
   }
}