From f4bb1815259a7848a0d345df700a7d78382fb688 Mon Sep 17 00:00:00 2001 From: ftimme Date: Wed, 21 Sep 2011 08:04:54 +0000 Subject: [PATCH] - Added SquirrelMail alias to ISPConfig nginx vhost. --- install/tpl/nginx_ispconfig.vhost.master | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/install/tpl/nginx_ispconfig.vhost.master b/install/tpl/nginx_ispconfig.vhost.master index f781d00a95..e820f5a9fa 100644 --- a/install/tpl/nginx_ispconfig.vhost.master +++ b/install/tpl/nginx_ispconfig.vhost.master @@ -48,4 +48,24 @@ server { location /phpMyAdmin { rewrite ^/* /phpmyadmin last; } + + location /squirrelmail { + root /usr/share/; + index index.php index.html index.htm; + location ~ ^/squirrelmail/(.+\.php)$ { + try_files $uri =404; + root /usr/share/; + fastcgi_pass 127.0.0.1:9000; + {ssl_comment}fastcgi_param HTTPS {fastcgi_ssl}; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $request_filename; + include /etc/nginx/fastcgi_params; + } + location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ { + root /usr/share/; + } + } + location /webmail { + rewrite ^/* /squirrelmail last; + } } \ No newline at end of file -- GitLab