Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (57 sloc) 2.05 KB
#
# FILE DISCONTINUED HERE
# UPDATED VERSION AT
# https://gitlab.com/yeupou/stalag13/raw/master/etc/nginx/sites-available/webmail
#
# | |
# \_V_//
# \/=|=\/
# [=v=]
# __\___/_____
# /..[ _____ ]
# /_ [ [ M /] ]
# /../.[ [ M /@] ]
# <-->[_[ [M /@/] ]
# /../ [.[ [ /@/ ] ]
# _________________]\ /__/ [_[ [/@/ C] ]
# <_________________>>0---] [=\ \@/ C / /
# ___ ___ ]/000o /__\ \ C / /
# \ / /....\ \_/ /
# ....\||/.... [___/=\___/
# . . . . [...] [...]
# . .. . [___/ \___]
# . 0 .. 0 . <---> <--->
# /\/\. . . ./\/\ [..] [..]
#
# more or less zeroconf for roundcube, assuming the rest is ok
# (php fastcgi spawned, roundcube installed)
server {
listen 443; ## listen for ipv4
# catch all based on the domain name
server_name ~^mx;
access_log /var/log/nginx/webmail.access.log;
error_log /var/log/nginx/webmail.error.log;
# can be created with certs/makecert.sh
ssl on;
ssl_certificate certs/webmail.pem;
ssl_certificate_key certs/webmail.key;
ssl_session_timeout 5m;
# set for roundcube
root /usr/share/squirrelmail;
index index.php;
autoindex off;
allow all;
location /config { deny all; }
location /plugins { deny all; }
location /functions { deny all; }
location /help { deny all; }
location /temp { deny all; }
location /logs { deny all; }
location ~ \.php(?:$|/) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_params is part of nginx-common
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
}