RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.11k stars 893 forks source link

php7 and nginx #1074

Open AndrinS opened 8 years ago

AndrinS commented 8 years ago

Hi

I'm trying to get rainloop to work on my LEMP stack setup. I followed this how-to.

When I go to mydomain.net/?admin I get forwarded to .../mail/ and I get:

404 Not Found
nginx

Here my site.conf for nginx:

server {
    server_name mydomain.net;
    listen 80;
    root /var/www/rainloop/public_html;
    access_log /var/www/rainloop/logs/access.log;
    error_log /var/www/rainloop/logs/error.log;
    index index.php;

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

    location ~ \.php$ {
        fastcgi_index index.php;
        fastcgi_split_path_info ^(.+\.php)(.*)$;
        fastcgi_keep_conn on;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/run/php7.0-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    location ~ /\.ht {
        deny all;
    }

    location ^~ /data {
      deny all;
    }

}

I already changed the php7.0-fpm.sock as you see.

Do I miss anything else?

Cheers

RainLoop commented 8 years ago

I don't see anything strange here.

Try to remove:

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

This section is not needed here.

AndrinS commented 8 years ago

Sorry for not replying on this post. I still have the same issue after removing the part you mentioned.