Thanks hanti.
I try another way:
- copy the template in conf-custom dir:
Code:
cp /usr/local/ispconfig/server/conf/nginx_vhost.conf.master /usr/local/ispconfig/server/conf-custom/
- move these 3 lines (141-143):
Code:
<tmpl_loop name="nginx_directives">
<tmpl_var name='nginx_directive'>
</tmpl_loop>
at line 19 (under "root <tmpl_var name='web_document_root_www'>;").
In this way I can override nginx rules from web interface. For wordpress in site->options->nginx Directives I write:
Code:
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9014;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
#fastcgi_intercept_errors on;
}
Can it be ?
Recent comments
10 hours 33 min ago
20 hours 58 sec ago
20 hours 50 min ago
1 day 23 min ago
1 day 4 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 17 hours ago
1 day 22 hours ago
1 day 23 hours ago