Skip to content

Commit 44feea1

Browse files
committed
Webmail tpl: don't serve php files directly when nginx is configured as rproxy for apache
1 parent 191e534 commit 44feea1

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ server {
2929
expires 7d;
3030
fastcgi_hide_header "Set-Cookie";
3131
}
32-
33-
location ~ ^/(.*\.php)$ {
34-
alias /var/lib/roundcube/$1;
35-
fastcgi_pass 127.0.0.1:9000;
36-
fastcgi_index index.php;
37-
include fastcgi_params;
38-
fastcgi_param SCRIPT_FILENAME $request_filename;
39-
}
4032
}
4133

4234
location /error/ {

install/deb/templates/mail/nginx/default.tpl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ server {
2626
expires 7d;
2727
fastcgi_hide_header "Set-Cookie";
2828
}
29-
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-
}
3729
}
3830

3931
location /error/ {

0 commit comments

Comments
 (0)