File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
install/ubuntu/15.04/templates/web/nginx/php-fpm Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ server {
2+ listen % ip% :% web_port% ;
3+ server_name % domain_idn% % alias_idn% ;
4+ root % docroot% /public;
5+ index index.php index.html index.htm;
6+ access_log /var/log/nginx/domains/% domain% .log combined;
7+ access_log /var/log/nginx/domains/% domain% .bytes bytes;
8+ error_log /var/log/nginx/domains/% domain% .error.log error;
9+ location / {
10+ try_files $uri $uri / /index.php?$query_string ;
11+ location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
12+ expires max;
13+ }
14+
15+ location ~ [^/]\.php(/|$) {
16+ fastcgi_param SCRIPT_FILENAME $document_root $fastcgi_script_name ;
17+ if (! -f $document_root $fastcgi_script_name ) {
18+ return 404;
19+ }
20+
21+ fastcgi_pass %backend_lsnr%;
22+ fastcgi_index index.php;
23+ include /etc/nginx/fastcgi_params;
24+ }
25+ }
26+
27+ error_page 403 /error/404.html;
28+ error_page 404 /error/404.html;
29+ error_page 500 502 503 504 /error/50x.html;
30+
31+ location /error/ {
32+ alias % home% /% user% /web/% domain% /document_errors/;
33+ }
34+
35+ location ~* "/\.(htaccess|htpasswd)$" {
36+ deny all;
37+ return 404;
38+ }
39+
40+ location /vstats/ {
41+ alias % home% /% user% /web/% domain% /stats/;
42+ include % home% /% user% /web/% domain% /stats/auth.conf*;
43+ }
44+
45+ include /etc/nginx/conf.d/phpmyadmin.inc*;
46+ include /etc/nginx/conf.d/phppgadmin.inc*;
47+ include /etc/nginx/conf.d/webmail.inc*;
48+
49+ include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
50+ }
You can’t perform that action at this time.
0 commit comments