|
@@ -4,14 +4,13 @@ server {
|
|
|
ssl_certificate %ssl_pem%;
|
|
ssl_certificate %ssl_pem%;
|
|
|
ssl_certificate_key %ssl_key%;
|
|
ssl_certificate_key %ssl_key%;
|
|
|
root /var/lib/roundcube;
|
|
root /var/lib/roundcube;
|
|
|
- index index.php;
|
|
|
|
|
|
|
+ index index.php index.html index.htm;
|
|
|
|
|
|
|
|
location =/ {
|
|
location =/ {
|
|
|
try_files $uri $uri/ /index.php?q=$uri&$args;
|
|
try_files $uri $uri/ /index.php?q=$uri&$args;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
location / {
|
|
|
- try_files $uri $uri/ /index.php?q=$uri&$args;
|
|
|
|
|
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)$ {
|
|
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)$ {
|
|
|
expires 1h;
|
|
expires 1h;
|
|
|
fastcgi_hide_header "Set-Cookie";
|
|
fastcgi_hide_header "Set-Cookie";
|
|
@@ -46,14 +45,16 @@ server {
|
|
|
fastcgi_index index.php;
|
|
fastcgi_index index.php;
|
|
|
include fastcgi_params;
|
|
include fastcgi_params;
|
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
|
|
|
+ fastcgi_param HTTPS on;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
error_page 403 /error/404.html;
|
|
error_page 403 /error/404.html;
|
|
|
error_page 404 /error/404.html;
|
|
error_page 404 /error/404.html;
|
|
|
- error_page 500 502 503 504 /error/50x.html;
|
|
|
|
|
|
|
+ error_page 500 502 503 504 505 /error/50x.html;
|
|
|
|
|
|
|
|
location /error/ {
|
|
location /error/ {
|
|
|
- alias /var/www/document_errors/;
|
|
|
|
|
|
|
+ alias /var/www/document_errors/;
|
|
|
|
|
+ try_files $uri $uri/;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
include %home%/%user%/conf/mail/%root_domain%/%web_system%.conf_*;
|
|
include %home%/%user%/conf/mail/%root_domain%/%web_system%.conf_*;
|