Skip to content

Commit 2788f1a

Browse files
Update web_system.stpl
1 parent d43c211 commit 2788f1a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

install/deb/templates/mail/nginx/web_system.stpl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)