Serghey Rodin 14 роки тому
батько
коміт
718dfc25f2
1 змінених файлів з 32 додано та 0 видалено
  1. 32 0
      data/templates/ngingx_vhost_default.stpl

+ 32 - 0
data/templates/ngingx_vhost_default.stpl

@@ -0,0 +1,32 @@
+server {
+    listen      %ip%:%proxy_port%;
+    server_name %domain_idn% %alias_idn%;
+    server_name_in_redirect off;
+    #error_log  /var/log/httpd/domains/%domain%.error.log error;
+
+    location / {
+        proxy_pass     http://%ip%:%web_port%;
+
+        location ~* ^.+\.(%extentions%)$ {
+            root           %docroot%;
+            access_log     /var/log/httpd/domains/%domain%.log combined;
+            access_log     /var/log/httpd/domains/%domain%.bytes bytes;
+            expires        max;
+            try_files      $uri @fallback;
+        }
+    }
+
+    location = /error/ {
+        root    %home%/%user%/domains/%domain%/document_errors/;
+        try_files      $uri @fallback;
+    }
+
+    location @fallback {
+        proxy_pass      http://%ip%:%web_port%;
+    }
+
+    location ~ /\.ht   {deny all;}
+    location ~ /.svn/  {deny all;}
+
+    Include %home%/%user%/conf/%domain%.nginx.*
+}