[error] 1815#0: *15 open()

eka

Verified User
Joined
Apr 9, 2015
Messages
22
Hello.

server with nginx returns error in
cd /var/log/nginx/domains/domain.com.error.log

2015/04/12 13:59:06 [error] 1815#0: *15 open() "/home/user/domains/domain.com/public_html/media/plg_jchoptimize/assets/gz/30/0/9fc119e270d785320b9ce2aca0d45984.js" failed (2: No such file or directory), client: IP, server: domain.com, request: "GET /media/plg_jchoptimize/assets/gz/30/0/9fc119e270d785320b9ce2aca0d45984.js HTTP/1.1", host: "domain.com", referrer: "http://domain.com/component/users/?view=login&Itemid=609&return=aHR0cDovL3d3dy5la2FzdHVkaWphLmx0L2Zhdm91cml0ZXMtcHJvZHVjdHM="

The problem is with joomla plugin plg_jchoptimize.
The plugin collect all the *.js *.css files optimize them, writes everything to 1 file and sends out.

The error says that the plugin can't open file.
Its because the plugin couldn't write them to a specific directory.

Maybe someone have a suggestion what could be wrong?
 
I solved it when i noticed a .htaccess and remembered that nginx do not use htacces...

there was RewriteRules:

<IfModule mod_rewrite.c>
# Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
# mod_rewrite in use
RewriteEngine On
RewriteRule ^(.*?)(test_mod_rewrite) /$1media/plg_jchoptimize/assets/modrewrite.php?q=$2
RewriteRule ^(.*?)(gz|nz)/([^/]+)/([^/]+)/([^/]+)\.(js|css)$ /$1media/plg_jchoptimize/assets/jscss.php?f=$5&type=$6&gz=$2&d=$3&i=$4
</IfModule>

Admin Level>Custom HTTPD Configurations>Domain.com added

location /(js|css)$ {
rewrite ^/(.*?)(test_mod_rewrite) /$1media/plg_jchoptimize/assets/modrewrite.php?q=$2;
rewrite ^/(.*?)(gz|nz)/([^/]+)/([^/]+)/([^/]+).(js|css)$ /;
}
 
Back
Top