Dear Admin,
When I requested forgotten password in the page forgot_password.html then following the error:
An error occoured reaching the site, please try agin later.
My-Server: Centos7 And Web Server: nginx 1.8
My nginx.conf :
Thanks
When I requested forgotten password in the page forgot_password.html then following the error:
An error occoured reaching the site, please try agin later.
My-Server: Centos7 And Web Server: nginx 1.8
My nginx.conf :
Code:
server {
listen Server-IP:80;
server_name MyDomain.com www.MyDomain.com;
root /home/UserSite/www/MyDomain.com/public_html;
index index.php index.html;
client_max_body_size 5G;
access_log /var/log/nginx/domain/MyDomain.access_log combined;
access_log /var/log/nginx/domain/MyDomain.bytes bytes;
error_log /var/log/nginx/domain/MyDomain.error_log error;
# 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; }
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
root /home/UserSite/www/MyDomain.com/public_html;
internal;
}
# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
# Authentication Login for admin page site
location /admin/ {
auth_basic "Authentication";
auth_basic_user_file /home/UserSite/www/MyDomain.com/.htpasswd/.htpasswd;
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias /home/UserSite/www/MyDomain.com/www_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
}