Skip to content

Commit eb7bdda

Browse files
committed
Create http2.stpl
Use http2 for faster loading, this requires https. Create http2.tpl No http2 support when HTTPS is not active... HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled). HTTP2 support Adds HTTP2 support for NGINX when using the http2 nginx template (only when HTTPS is enabled).
1 parent 422e60f commit eb7bdda

File tree

30 files changed

+1033
-0
lines changed

30 files changed

+1033
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl on;
5+
ssl_certificate %ssl_pem%;
6+
ssl_certificate_key %ssl_key%;
7+
error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+
location / {
10+
proxy_pass https://%ip%:%web_ssl_port%;
11+
location ~* ^.+\.(%proxy_extentions%)$ {
12+
root %sdocroot%;
13+
access_log /var/log/httpd/domains/%domain%.log combined;
14+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+
expires max;
16+
try_files $uri @fallback;
17+
}
18+
}
19+
20+
location /error/ {
21+
alias %home%/%user%/web/%domain%/document_errors/;
22+
}
23+
24+
location @fallback {
25+
proxy_pass https://%ip%:%web_ssl_port%;
26+
}
27+
28+
location ~ /\.ht {return 404;}
29+
location ~ /\.svn/ {return 404;}
30+
location ~ /\.git/ {return 404;}
31+
location ~ /\.hg/ {return 404;}
32+
location ~ /\.bzr/ {return 404;}
33+
34+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+
}
36+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
error_log /var/log/httpd/domains/%domain%.error.log error;
5+
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(%proxy_extentions%)$ {
9+
root %docroot%;
10+
access_log /var/log/httpd/domains/%domain%.log combined;
11+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
12+
expires max;
13+
try_files $uri @fallback;
14+
}
15+
}
16+
17+
location /error/ {
18+
alias %home%/%user%/web/%domain%/document_errors/;
19+
}
20+
21+
location @fallback {
22+
proxy_pass http://%ip%:%web_port%;
23+
}
24+
25+
location ~ /\.ht {return 404;}
26+
location ~ /\.svn/ {return 404;}
27+
location ~ /\.git/ {return 404;}
28+
location ~ /\.hg/ {return 404;}
29+
location ~ /\.bzr/ {return 404;}
30+
31+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+
}
33+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl on;
5+
ssl_certificate %ssl_pem%;
6+
ssl_certificate_key %ssl_key%;
7+
error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+
location / {
10+
proxy_pass https://%ip%:%web_ssl_port%;
11+
location ~* ^.+\.(%proxy_extentions%)$ {
12+
root %sdocroot%;
13+
access_log /var/log/httpd/domains/%domain%.log combined;
14+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+
expires max;
16+
try_files $uri @fallback;
17+
}
18+
}
19+
20+
location /error/ {
21+
alias %home%/%user%/web/%domain%/document_errors/;
22+
}
23+
24+
location @fallback {
25+
proxy_pass https://%ip%:%web_ssl_port%;
26+
}
27+
28+
location ~ /\.ht {return 404;}
29+
location ~ /\.svn/ {return 404;}
30+
location ~ /\.git/ {return 404;}
31+
location ~ /\.hg/ {return 404;}
32+
location ~ /\.bzr/ {return 404;}
33+
34+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+
}
36+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
error_log /var/log/httpd/domains/%domain%.error.log error;
5+
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(%proxy_extentions%)$ {
9+
root %docroot%;
10+
access_log /var/log/httpd/domains/%domain%.log combined;
11+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
12+
expires max;
13+
try_files $uri @fallback;
14+
}
15+
}
16+
17+
location /error/ {
18+
alias %home%/%user%/web/%domain%/document_errors/;
19+
}
20+
21+
location @fallback {
22+
proxy_pass http://%ip%:%web_port%;
23+
}
24+
25+
location ~ /\.ht {return 404;}
26+
location ~ /\.svn/ {return 404;}
27+
location ~ /\.git/ {return 404;}
28+
location ~ /\.hg/ {return 404;}
29+
location ~ /\.bzr/ {return 404;}
30+
31+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+
}
33+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl on;
5+
ssl_certificate %ssl_pem%;
6+
ssl_certificate_key %ssl_key%;
7+
error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+
location / {
10+
proxy_pass https://%ip%:%web_ssl_port%;
11+
location ~* ^.+\.(%proxy_extentions%)$ {
12+
root %sdocroot%;
13+
access_log /var/log/httpd/domains/%domain%.log combined;
14+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+
expires max;
16+
try_files $uri @fallback;
17+
}
18+
}
19+
20+
location /error/ {
21+
alias %home%/%user%/web/%domain%/document_errors/;
22+
}
23+
24+
location @fallback {
25+
proxy_pass https://%ip%:%web_ssl_port%;
26+
}
27+
28+
location ~ /\.ht {return 404;}
29+
location ~ /\.svn/ {return 404;}
30+
location ~ /\.git/ {return 404;}
31+
location ~ /\.hg/ {return 404;}
32+
location ~ /\.bzr/ {return 404;}
33+
34+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+
}
36+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
error_log /var/log/httpd/domains/%domain%.error.log error;
5+
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(%proxy_extentions%)$ {
9+
root %docroot%;
10+
access_log /var/log/httpd/domains/%domain%.log combined;
11+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
12+
expires max;
13+
try_files $uri @fallback;
14+
}
15+
}
16+
17+
location /error/ {
18+
alias %home%/%user%/web/%domain%/document_errors/;
19+
}
20+
21+
location @fallback {
22+
proxy_pass http://%ip%:%web_port%;
23+
}
24+
25+
location ~ /\.ht {return 404;}
26+
location ~ /\.svn/ {return 404;}
27+
location ~ /\.git/ {return 404;}
28+
location ~ /\.hg/ {return 404;}
29+
location ~ /\.bzr/ {return 404;}
30+
31+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+
}
33+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl on;
5+
ssl_certificate %ssl_pem%;
6+
ssl_certificate_key %ssl_key%;
7+
error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+
location / {
10+
proxy_pass https://%ip%:%web_ssl_port%;
11+
location ~* ^.+\.(%proxy_extentions%)$ {
12+
root %sdocroot%;
13+
access_log /var/log/httpd/domains/%domain%.log combined;
14+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+
expires max;
16+
try_files $uri @fallback;
17+
}
18+
}
19+
20+
location /error/ {
21+
alias %home%/%user%/web/%domain%/document_errors/;
22+
}
23+
24+
location @fallback {
25+
proxy_pass https://%ip%:%web_ssl_port%;
26+
}
27+
28+
location ~ /\.ht {return 404;}
29+
location ~ /\.svn/ {return 404;}
30+
location ~ /\.git/ {return 404;}
31+
location ~ /\.hg/ {return 404;}
32+
location ~ /\.bzr/ {return 404;}
33+
34+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
error_log /var/log/httpd/domains/%domain%.error.log error;
5+
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(%proxy_extentions%)$ {
9+
root %docroot%;
10+
access_log /var/log/httpd/domains/%domain%.log combined;
11+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
12+
expires max;
13+
try_files $uri @fallback;
14+
}
15+
}
16+
17+
location /error/ {
18+
alias %home%/%user%/web/%domain%/document_errors/;
19+
}
20+
21+
location @fallback {
22+
proxy_pass http://%ip%:%web_port%;
23+
}
24+
25+
location ~ /\.ht {return 404;}
26+
location ~ /\.svn/ {return 404;}
27+
location ~ /\.git/ {return 404;}
28+
location ~ /\.hg/ {return 404;}
29+
location ~ /\.bzr/ {return 404;}
30+
31+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
server {
2+
listen %ip%:%proxy_ssl_port% http2;
3+
server_name %domain_idn% %alias_idn%;
4+
ssl on;
5+
ssl_certificate %ssl_pem%;
6+
ssl_certificate_key %ssl_key%;
7+
error_log /var/log/httpd/domains/%domain%.error.log error;
8+
9+
location / {
10+
proxy_pass https://%ip%:%web_ssl_port%;
11+
location ~* ^.+\.(%proxy_extentions%)$ {
12+
root %sdocroot%;
13+
access_log /var/log/httpd/domains/%domain%.log combined;
14+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
15+
expires max;
16+
try_files $uri @fallback;
17+
}
18+
}
19+
20+
location /error/ {
21+
alias %home%/%user%/web/%domain%/document_errors/;
22+
}
23+
24+
location @fallback {
25+
proxy_pass https://%ip%:%web_ssl_port%;
26+
}
27+
28+
location ~ /\.ht {return 404;}
29+
location ~ /\.svn/ {return 404;}
30+
location ~ /\.git/ {return 404;}
31+
location ~ /\.hg/ {return 404;}
32+
location ~ /\.bzr/ {return 404;}
33+
34+
include %home%/%user%/conf/web/snginx.%domain%.conf*;
35+
}
36+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
server {
2+
listen %ip%:%proxy_port%;
3+
server_name %domain_idn% %alias_idn%;
4+
error_log /var/log/httpd/domains/%domain%.error.log error;
5+
6+
location / {
7+
proxy_pass http://%ip%:%web_port%;
8+
location ~* ^.+\.(%proxy_extentions%)$ {
9+
root %docroot%;
10+
access_log /var/log/httpd/domains/%domain%.log combined;
11+
access_log /var/log/httpd/domains/%domain%.bytes bytes;
12+
expires max;
13+
try_files $uri @fallback;
14+
}
15+
}
16+
17+
location /error/ {
18+
alias %home%/%user%/web/%domain%/document_errors/;
19+
}
20+
21+
location @fallback {
22+
proxy_pass http://%ip%:%web_port%;
23+
}
24+
25+
location ~ /\.ht {return 404;}
26+
location ~ /\.svn/ {return 404;}
27+
location ~ /\.git/ {return 404;}
28+
location ~ /\.hg/ {return 404;}
29+
location ~ /\.bzr/ {return 404;}
30+
31+
include %home%/%user%/conf/web/nginx.%domain%.conf*;
32+
}
33+

0 commit comments

Comments
 (0)