Hello,
After migrating my server from Debian 11 to 12, my reverse proxy is no longer working. Locally everything works, but when accessing through my reverse proxy, I get the initial login page and after entering any credentials, I receive a 404 page not found error.
My nginx reverse proxy conf :
server{
# DNS Record for catch request
server_name webmail.guill4ume.fr;
# Open block for process forward request
location / {
# Server where traffic is transferred
proxy_pass http://10.0.0.12/roundcube/;
# Include file proxy_params with general param
include proxy_params;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/guill4ume.fr-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/guill4ume.fr-0001/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server{
if ($host = webmail.guill4ume.fr) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name webmail.guill4ume.fr;
listen 80;
return 404; # managed by Certbot
And my roundcube conf with apache :
root@MAIL:~# cat /etc/apache2/sites-available/roundcube.conf
Alias /roundcube /var/lib/roundcube
<Directory /var/lib/roundcube/>
AddType application/x-httpd-php .php
Options +FollowSymLinks
DirectoryIndex index.php
# Les directives recommandées pour une sécurité améliorée
Require all denied
Require ip 127.0.0.1
Require ip ::1
Require ip 10.0.0.0/24
<IfModule mod_php.c>
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag short_open_tag On
</IfModule>
</Directory>
On debian 12 :
- roundcube 1.6.1
- php 8.2.7 (or8)
Thanks you