Skip to content

Commit 41ec050

Browse files
committed
no-php template
1 parent 083e820 commit 41ec050

File tree

20 files changed

+800
-0
lines changed

20 files changed

+800
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
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+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
types {
15+
text/html html htm shtml php php5;
16+
}
17+
18+
location / {
19+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
20+
expires max;
21+
}
22+
}
23+
24+
error_page 403 /error/404.html;
25+
error_page 404 /error/404.html;
26+
error_page 500 502 503 504 /error/50x.html;
27+
28+
location /error/ {
29+
alias %home%/%user%/web/%domain%/document_errors/;
30+
}
31+
32+
location ~* "/\.(htaccess|htpasswd)$" {
33+
deny all;
34+
return 404;
35+
}
36+
37+
include /etc/nginx/conf.d/phpmyadmin.inc*;
38+
include /etc/nginx/conf.d/phppgadmin.inc*;
39+
include /etc/nginx/conf.d/webmail.inc*;
40+
41+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
42+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
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+
10+
types {
11+
text/html html htm shtml php php5;
12+
}
13+
14+
location / {
15+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
16+
expires max;
17+
}
18+
}
19+
20+
error_page 403 /error/404.html;
21+
error_page 404 /error/404.html;
22+
error_page 500 502 503 504 /error/50x.html;
23+
24+
location /error/ {
25+
alias %home%/%user%/web/%domain%/document_errors/;
26+
}
27+
28+
location ~* "/\.(htaccess|htpasswd)$" {
29+
deny all;
30+
return 404;
31+
}
32+
33+
include /etc/nginx/conf.d/phpmyadmin.inc*;
34+
include /etc/nginx/conf.d/phppgadmin.inc*;
35+
include /etc/nginx/conf.d/webmail.inc*;
36+
37+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
38+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
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+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
types {
15+
text/html html htm shtml php php5;
16+
}
17+
18+
location / {
19+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
20+
expires max;
21+
}
22+
}
23+
24+
error_page 403 /error/404.html;
25+
error_page 404 /error/404.html;
26+
error_page 500 502 503 504 /error/50x.html;
27+
28+
location /error/ {
29+
alias %home%/%user%/web/%domain%/document_errors/;
30+
}
31+
32+
location ~* "/\.(htaccess|htpasswd)$" {
33+
deny all;
34+
return 404;
35+
}
36+
37+
include /etc/nginx/conf.d/phpmyadmin.inc*;
38+
include /etc/nginx/conf.d/phppgadmin.inc*;
39+
include /etc/nginx/conf.d/webmail.inc*;
40+
41+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
42+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
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+
10+
types {
11+
text/html html htm shtml php php5;
12+
}
13+
14+
location / {
15+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
16+
expires max;
17+
}
18+
}
19+
20+
error_page 403 /error/404.html;
21+
error_page 404 /error/404.html;
22+
error_page 500 502 503 504 /error/50x.html;
23+
24+
location /error/ {
25+
alias %home%/%user%/web/%domain%/document_errors/;
26+
}
27+
28+
location ~* "/\.(htaccess|htpasswd)$" {
29+
deny all;
30+
return 404;
31+
}
32+
33+
include /etc/nginx/conf.d/phpmyadmin.inc*;
34+
include /etc/nginx/conf.d/phppgadmin.inc*;
35+
include /etc/nginx/conf.d/webmail.inc*;
36+
37+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
38+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
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+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
types {
15+
text/html html htm shtml php php5;
16+
}
17+
18+
location / {
19+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
20+
expires max;
21+
}
22+
}
23+
24+
error_page 403 /error/404.html;
25+
error_page 404 /error/404.html;
26+
error_page 500 502 503 504 /error/50x.html;
27+
28+
location /error/ {
29+
alias %home%/%user%/web/%domain%/document_errors/;
30+
}
31+
32+
location ~* "/\.(htaccess|htpasswd)$" {
33+
deny all;
34+
return 404;
35+
}
36+
37+
include /etc/nginx/conf.d/phpmyadmin.inc*;
38+
include /etc/nginx/conf.d/phppgadmin.inc*;
39+
include /etc/nginx/conf.d/webmail.inc*;
40+
41+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
42+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
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+
10+
types {
11+
text/html html htm shtml php php5;
12+
}
13+
14+
location / {
15+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
16+
expires max;
17+
}
18+
}
19+
20+
error_page 403 /error/404.html;
21+
error_page 404 /error/404.html;
22+
error_page 500 502 503 504 /error/50x.html;
23+
24+
location /error/ {
25+
alias %home%/%user%/web/%domain%/document_errors/;
26+
}
27+
28+
location ~* "/\.(htaccess|htpasswd)$" {
29+
deny all;
30+
return 404;
31+
}
32+
33+
include /etc/nginx/conf.d/phpmyadmin.inc*;
34+
include /etc/nginx/conf.d/phppgadmin.inc*;
35+
include /etc/nginx/conf.d/webmail.inc*;
36+
37+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
38+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
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+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
types {
15+
text/html html htm shtml php php5;
16+
}
17+
18+
location / {
19+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
20+
expires max;
21+
}
22+
}
23+
24+
error_page 403 /error/404.html;
25+
error_page 404 /error/404.html;
26+
error_page 500 502 503 504 /error/50x.html;
27+
28+
location /error/ {
29+
alias %home%/%user%/web/%domain%/document_errors/;
30+
}
31+
32+
location ~* "/\.(htaccess|htpasswd)$" {
33+
deny all;
34+
return 404;
35+
}
36+
37+
include /etc/nginx/conf.d/phpmyadmin.inc*;
38+
include /etc/nginx/conf.d/phppgadmin.inc*;
39+
include /etc/nginx/conf.d/webmail.inc*;
40+
41+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
42+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
server {
2+
listen %ip%:%web_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %docroot%;
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+
10+
types {
11+
text/html html htm shtml php php5;
12+
}
13+
14+
location / {
15+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
16+
expires max;
17+
}
18+
}
19+
20+
error_page 403 /error/404.html;
21+
error_page 404 /error/404.html;
22+
error_page 500 502 503 504 /error/50x.html;
23+
24+
location /error/ {
25+
alias %home%/%user%/web/%domain%/document_errors/;
26+
}
27+
28+
location ~* "/\.(htaccess|htpasswd)$" {
29+
deny all;
30+
return 404;
31+
}
32+
33+
include /etc/nginx/conf.d/phpmyadmin.inc*;
34+
include /etc/nginx/conf.d/phppgadmin.inc*;
35+
include /etc/nginx/conf.d/webmail.inc*;
36+
37+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
38+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server {
2+
listen %ip%:%web_ssl_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
root %sdocroot%;
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+
10+
ssl on;
11+
ssl_certificate %ssl_pem%;
12+
ssl_certificate_key %ssl_key%;
13+
14+
types {
15+
text/html html htm shtml php php5;
16+
}
17+
18+
location / {
19+
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
20+
expires max;
21+
}
22+
}
23+
24+
error_page 403 /error/404.html;
25+
error_page 404 /error/404.html;
26+
error_page 500 502 503 504 /error/50x.html;
27+
28+
location /error/ {
29+
alias %home%/%user%/web/%domain%/document_errors/;
30+
}
31+
32+
location ~* "/\.(htaccess|htpasswd)$" {
33+
deny all;
34+
return 404;
35+
}
36+
37+
include /etc/nginx/conf.d/phpmyadmin.inc*;
38+
include /etc/nginx/conf.d/phppgadmin.inc*;
39+
include /etc/nginx/conf.d/webmail.inc*;
40+
41+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
42+
}

0 commit comments

Comments
 (0)