some js files 404

cr33p

Member
YetiShare User
May 8, 2016
33
2
8
just tested fresh install of yettishare.
always 404 error on 'uploader.js' and 'translations.js'

how can i fix it ?
 

cr33p

Member
YetiShare User
May 8, 2016
33
2
8
fix it now
TL;DR
nginx rules in script archive is wrong, they just didn't work at nginx. and i don't use apache at all.
fixed by using this one

client_max_body_size 5G;

# 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 SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
include fastcgi_params;
}

#location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
#}

location /files/ {
internal;
}

# these locations would be hidden by .htaccess normally
location /logs/ {
deny all;
}
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
The Nginx rules aren't wrong. They're in use on many sites, including our demo site.