Hi everyone i hope you all are fine.
I am having an issue on all of my fileservers all of a sudden.
I can upload and can download files from my file servers but when i test them in the admin panel i get this error http://prntscr.com/ltwlb0
Eventhough i have setup the nginx rewrite rules correctly here is my nginx conf file.
And my config file of the fileserver is
And most importantly when i open the homepage of my file servers i get this error in chrome http://prntscr.com/ltwn31 however downloads are working fine.
And there is nothing in the nginx error logs.
Just to hide my data i put /MyRootPath dont worry about that. This was working fine like a second ago, i didnt changed anything but now suddenly this is happening.
I have given all correct permissions to the directory also.
I am having an issue on all of my fileservers all of a sudden.
I can upload and can download files from my file servers but when i test them in the admin panel i get this error http://prntscr.com/ltwlb0
Eventhough i have setup the nginx rewrite rules correctly here is my nginx conf file.
Code:
server {
listen /MyRootPath
server_name /MyRootPath
root /MyRootPath
index index.php index.html index.htm;
access_log /MyRootPath
access_log /MyRootPath
error_log /MyRootPath
ssl on;
ssl_certificate /MyRootPath
ssl_certificate_key /MyRootPath
# handle requests to the API
location ~ /api/v2/(.+)$ {
if (!-e $request_filename) { rewrite ^/api/v2/(.*) /api/v2/index.php?_page_url=$1 last; }
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# 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:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
root /MyRootPath
internal;
}
# these locations would be hidden by .htaccess normally
location /core/logs/ {
deny all;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias /MyRootPath
include /MyRootPath*;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include /MyRootPath
}
And most importantly when i open the homepage of my file servers i get this error in chrome http://prntscr.com/ltwn31 however downloads are working fine.
And there is nothing in the nginx error logs.
Just to hide my data i put /MyRootPath dont worry about that. This was working fine like a second ago, i didnt changed anything but now suddenly this is happening.
I have given all correct permissions to the directory also.
Last edited: