Просмотр исходного кода

Merge pull request #1010 from Piterden/master

[Fix] Pyrocms nginx config templates
Anton Reutov 9 лет назад
Родитель
Сommit
e598d80708
30 измененных файлов с 60 добавлено и 60 удалено
  1. 2 2
      install/debian/7/templates/web/nginx/php5-fpm/pyrocms.stpl
  2. 2 2
      install/debian/7/templates/web/nginx/php5-fpm/pyrocms.tpl
  3. 2 2
      install/debian/8/templates/web/nginx/php5-fpm/pyrocms.stpl
  4. 2 2
      install/debian/8/templates/web/nginx/php5-fpm/pyrocms.tpl
  5. 2 2
      install/rhel/5/templates/web/nginx/php-fpm/pyrocms.stpl
  6. 2 2
      install/rhel/5/templates/web/nginx/php-fpm/pyrocms.tpl
  7. 2 2
      install/rhel/6/templates/web/nginx/php-fpm/pyrocms.stpl
  8. 2 2
      install/rhel/6/templates/web/nginx/php-fpm/pyrocms.tpl
  9. 2 2
      install/rhel/7/templates/web/nginx/php-fpm/pyrocms.stpl
  10. 2 2
      install/rhel/7/templates/web/nginx/php-fpm/pyrocms.tpl
  11. 2 2
      install/ubuntu/12.04/templates/web/nginx/php-fpm/pyrocms.stpl
  12. 2 2
      install/ubuntu/12.04/templates/web/nginx/php-fpm/pyrocms.tpl
  13. 2 2
      install/ubuntu/12.10/templates/web/nginx/php-fpm/pyrocms.stpl
  14. 2 2
      install/ubuntu/12.10/templates/web/nginx/php-fpm/pyrocms.tpl
  15. 2 2
      install/ubuntu/13.04/templates/web/nginx/php-fpm/pyrocms.stpl
  16. 2 2
      install/ubuntu/13.04/templates/web/nginx/php-fpm/pyrocms.tpl
  17. 2 2
      install/ubuntu/13.10/templates/web/nginx/php-fpm/pyrocms.stpl
  18. 2 2
      install/ubuntu/13.10/templates/web/nginx/php-fpm/pyrocms.tpl
  19. 2 2
      install/ubuntu/14.04/templates/web/nginx/php-fpm/pyrocms.stpl
  20. 2 2
      install/ubuntu/14.04/templates/web/nginx/php-fpm/pyrocms.tpl
  21. 2 2
      install/ubuntu/14.10/templates/web/nginx/php-fpm/pyrocms.stpl
  22. 2 2
      install/ubuntu/14.10/templates/web/nginx/php-fpm/pyrocms.tpl
  23. 2 2
      install/ubuntu/15.04/templates/web/nginx/php-fpm/pyrocms.stpl
  24. 2 2
      install/ubuntu/15.04/templates/web/nginx/php-fpm/pyrocms.tpl
  25. 2 2
      install/ubuntu/15.10/templates/web/nginx/php-fpm/pyrocms.stpl
  26. 2 2
      install/ubuntu/15.10/templates/web/nginx/php-fpm/pyrocms.tpl
  27. 2 2
      install/ubuntu/16.04/templates/web/nginx/php-fpm/pyrocms.stpl
  28. 2 2
      install/ubuntu/16.04/templates/web/nginx/php-fpm/pyrocms.tpl
  29. 2 2
      install/ubuntu/16.10/templates/web/nginx/php-fpm/pyrocms.stpl
  30. 2 2
      install/ubuntu/16.10/templates/web/nginx/php-fpm/pyrocms.tpl

+ 2 - 2
install/debian/7/templates/web/nginx/php5-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/debian/7/templates/web/nginx/php5-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/debian/8/templates/web/nginx/php5-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/debian/8/templates/web/nginx/php5-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/rhel/5/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/rhel/5/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/rhel/6/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/rhel/6/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/rhel/7/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/rhel/7/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/12.04/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/12.04/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/12.10/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/12.10/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/13.04/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/13.04/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/13.10/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/13.10/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/14.04/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/14.04/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/14.10/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/14.10/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/15.04/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/15.04/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/15.10/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/15.10/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/16.04/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/16.04/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {

+ 2 - 2
install/ubuntu/16.10/templates/web/nginx/php-fpm/pyrocms.stpl

@@ -1,7 +1,7 @@
 server {
     listen      %ip%:%web_ssl_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
@@ -12,7 +12,7 @@ server {
     ssl_certificate_key  %ssl_key%;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+            try_files $uri $uri/ /installer/index.php?$query_string;
         }
 
     location / {

+ 2 - 2
install/ubuntu/16.10/templates/web/nginx/php-fpm/pyrocms.tpl

@@ -1,14 +1,14 @@
 server {
     listen      %ip%:%web_port%;
     server_name %domain_idn% %alias_idn%;
-    root        %docroot%;
+    root        %docroot%/public;
     index       index.php index.html index.htm;
     access_log  /var/log/nginx/domains/%domain%.log combined;
     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
     error_log   /var/log/nginx/domains/%domain%.error.log error;
 
     location /installer {
-            try_files $uri $uri/ /installer/index.php;
+        try_files $uri $uri/ /installer/index.php?$query_string;
     }
 
     location / {