System : NGINX + PHP [File Hosting Site Script v4.0]
I try to login, tips:
Unable to login prompt: an error occoured reaching the site to login, please try again later actual response message :. Not found
My NGINX configuration:
I try to login, tips:
Unable to login prompt: an error occoured reaching the site to login, please try again later actual response message :. Not found
My NGINX configuration:
Code:
server
{
listen 80;
#listen [::]:80;
server_name xxx.com www.xxxx.com;
index index.php default.html default.htm default.php;
root /home/wwwroot/xxxx.com;
client_max_body_size 5G;
include none.conf;
#error_page 404 /404.html;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
#include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
internal;
}
# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
}