We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bbce4c commit 718dfc2Copy full SHA for 718dfc2
1 file changed
data/templates/ngingx_vhost_default.stpl
@@ -0,0 +1,32 @@
1
+server {
2
+ listen %ip%:%proxy_port%;
3
+ server_name %domain_idn% %alias_idn%;
4
+ server_name_in_redirect off;
5
+ #error_log /var/log/httpd/domains/%domain%.error.log error;
6
+
7
+ location / {
8
+ proxy_pass http://%ip%:%web_port%;
9
10
+ location ~* ^.+\.(%extentions%)$ {
11
+ root %docroot%;
12
+ access_log /var/log/httpd/domains/%domain%.log combined;
13
+ access_log /var/log/httpd/domains/%domain%.bytes bytes;
14
+ expires max;
15
+ try_files $uri @fallback;
16
+ }
17
18
19
+ location = /error/ {
20
+ root %home%/%user%/domains/%domain%/document_errors/;
21
22
23
24
+ location @fallback {
25
26
27
28
+ location ~ /\.ht {deny all;}
29
+ location ~ /.svn/ {deny all;}
30
31
+ Include %home%/%user%/conf/%domain%.nginx.*
32
+}
0 commit comments