diff --git a/install/tpl/nginx_ispconfig.vhost.master b/install/tpl/nginx_ispconfig.vhost.master index f781d00a95c467157b86380f61885df7f062bb8a..e820f5a9fa02e14f7994cbfbe5c4415d3a1fb7e7 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