Skip to content

Commit ac94dbd

Browse files
authored
Set session.cookie_path in nginx config
This keeps the security when using the default config
2 parents 2173bb7 + 68a12d6 commit ac94dbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conf/nginx-alldomains.conf

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
fastcgi_split_path_info ^/mail(/.*)()$;
4343
fastcgi_index index.php;
4444
fastcgi_param SCRIPT_FILENAME /usr/local/lib/roundcubemail/$fastcgi_script_name;
45+
# ensure roudcube session id's aren't leaked to other parts of the server
46+
fastcgi_param PHP_VALUE "session.cookie_path=/mail/";
4547
fastcgi_pass php-fpm;
4648

4749
# Outgoing mail also goes through this endpoint, so increase the maximum

0 commit comments

Comments
 (0)