File tree Expand file tree Collapse file tree 7 files changed +41
-40
lines changed
Expand file tree Collapse file tree 7 files changed +41
-40
lines changed Original file line number Diff line number Diff line change @@ -121,9 +121,9 @@ http {
121121 add_header X-Content-Type-Options nosniff;
122122
123123 # Error pages
124- error_page 403 /error/403 .html;
125- error_page 404 /error/404 .html;
126- error_page 502 503 504 /error/50x .html;
124+ error_page 403 /error/404 .html;
125+ error_page 404 /error/404 .html;
126+ error_page 500 501 502 503 504 505 /error/50x .html;
127127
128128 # Cache settings
129129 proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=1024m ;
@@ -147,6 +147,6 @@ http {
147147 open_file_cache_errors off;
148148
149149 # Wildcard include
150- include /etc/nginx/conf.d/*.conf;
151- include /etc/nginx/conf.d/domains/*.conf;
150+ include /etc/nginx/conf.d/*.conf;
151+ include /etc/nginx/conf.d/domains/*.conf;
152152}
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ server {
2020
2121 location / {
2222 proxy_pass https://%ip%:%web_ssl_port%;
23- try_files $uri $uri/ /index.php?q=$uri&$args ;
23+ try_files $uri $uri/ =404 ;
2424 alias /var/lib/roundcube/;
2525 location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
2626 expires 7d;
2727 fastcgi_hide_header "Set-Cookie";
2828 }
29- }
3029
31- location ~ ^/(.*\.php)$ {
32- alias /var/lib/roundcube/$1;
33- fastcgi_pass 127.0.0.1:9000;
34- fastcgi_index index.php;
35- include fastcgi_params;
36- fastcgi_param SCRIPT_FILENAME $request_filename;
30+ location ~ ^/(.*\.php)$ {
31+ alias /var/lib/roundcube/$1;
32+ fastcgi_pass 127.0.0.1:9000;
33+ fastcgi_index index.php;
34+ include fastcgi_params;
35+ fastcgi_param SCRIPT_FILENAME $request_filename;
36+ }
3737 }
3838
3939 error_page 403 /error/404.html;
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ server {
2020
2121 location / {
2222 proxy_pass http://% ip% :% web_port% ;
23- try_files $uri $uri / /index.php? q= $ uri & $ args ;
23+ try_files $uri $uri / =404 ;
2424 alias /var/lib/roundcube/;
2525 location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
2626 expires 7d;
2727 fastcgi_hide_header " Set-Cookie" ;
2828 }
29- }
3029
31- location ~ ^/(.*\.php)$ {
32- alias /var/lib/roundcube/$1;
33- fastcgi_pass 127.0.0.1:9000;
34- fastcgi_index index.php;
35- include fastcgi_params;
36- fastcgi_param SCRIPT_FILENAME $request_filename ;
30+ location ~ ^/(.*\.php)$ {
31+ alias /var/lib/roundcube/$1;
32+ fastcgi_pass 127.0.0.1:9000;
33+ fastcgi_index index.php;
34+ include fastcgi_params;
35+ fastcgi_param SCRIPT_FILENAME $request_filename ;
36+ }
3737 }
3838
3939 error_page 403 /error/404.html;
Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ server {
1919 }
2020
2121 location / {
22- try_files $uri $uri/ /index.php?q=$uri&$args ;
22+ try_files $uri $uri/ =404 ;
2323 location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
2424 expires 7d;
2525 fastcgi_hide_header "Set-Cookie";
2626 }
27- }
2827
29- location ~ ^/(.*\.php)$ {
30- alias /var/lib/roundcube/$1;
31- fastcgi_pass 127.0.0.1:9000;
32- fastcgi_index index.php;
33- include fastcgi_params;
34- fastcgi_param SCRIPT_FILENAME $request_filename;
28+ location ~ ^/(.*\.php)$ {
29+ alias /var/lib/roundcube/$1;
30+ fastcgi_pass 127.0.0.1:9000;
31+ fastcgi_index index.php;
32+ include fastcgi_params;
33+ fastcgi_param SCRIPT_FILENAME $request_filename;
34+ }
3535 }
3636
3737 error_page 403 /error/404.html;
Original file line number Diff line number Diff line change @@ -19,19 +19,19 @@ server {
1919 }
2020
2121 location / {
22- try_files $uri $uri / /index.php? q= $ uri & $ args ;
22+ try_files $uri $uri / =404 ;
2323 location ~* ^.+\.(ogg|ogv|svg|svgz|swf|eot|otf|woff|mov|mp3|mp4|webm|flv|ttf|rss|atom|jpg|jpeg|gif|png|ico|bmp|mid|midi|wav|rtf|css|js|jar)$ {
2424 expires 7d;
2525 fastcgi_hide_header " Set-Cookie" ;
2626 }
27- }
2827
29- location ~ ^/(.*\.php)$ {
30- alias /var/lib/roundcube/$1;
31- fastcgi_pass 127.0.0.1:9000;
32- fastcgi_index index.php;
33- include fastcgi_params;
34- fastcgi_param SCRIPT_FILENAME $request_filename ;
28+ location ~ ^/(.*\.php)$ {
29+ alias /var/lib/roundcube/$1;
30+ fastcgi_pass 127.0.0.1:9000;
31+ fastcgi_index index.php;
32+ include fastcgi_params;
33+ fastcgi_param SCRIPT_FILENAME $request_filename ;
34+ }
3535 }
3636
3737 error_page 403 /error/404.html;
Original file line number Diff line number Diff line change @@ -1044,6 +1044,7 @@ chmod 751 $HESTIA/data/templates/web/suspend/webfonts
10441044chmod 751 $HESTIA /data/templates/web/unassigned/css
10451045chmod 751 $HESTIA /data/templates/web/unassigned/js
10461046chmod 751 $HESTIA /data/templates/web/unassigned/webfonts
1047+ chmod 644 $HESTIA /data/templates/web/unassigned/index.html
10471048
10481049mkdir -p /var/www/html
10491050
Original file line number Diff line number Diff line change @@ -102,9 +102,9 @@ http {
102102 ssl_certificate /usr/local/hestia/ssl /certificate.crt;
103103 ssl_certificate_key /usr/local/hestia/ssl /certificate.key;
104104
105- error_page 404 /error/404 /index .html;
106- error_page 403 /error/index .html;
107- error_page 500 /error/index .html;
105+ error_page 403 /error/404 /index .html;
106+ error_page 404 /error/ 404 /index .html;
107+ error_page 500 501 502 503 504 505 /error/index .html;
108108
109109 location / {
110110 expires off;
You can’t perform that action at this time.
0 commit comments