Initial Config
This commit is contained in:
61
conf.d/fet.at/horde.conf.txt
Normal file
61
conf.d/fet.at/horde.conf.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
include ssl.conf;
|
||||
|
||||
server_name fet.htu.tuwien.ac.at;
|
||||
location / {
|
||||
return 302 https://mail.fet.at$request_uri;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
include ssl.conf;
|
||||
|
||||
server_name mail.fet.at www.mail.fet.at;
|
||||
|
||||
# add_header "Strict-Transport-Security max-age=63072000; includeSubdomains; preload" always;
|
||||
|
||||
location / {
|
||||
include secure.conf;
|
||||
root /var/www/mail;
|
||||
}
|
||||
|
||||
location /mail5/ {
|
||||
# include proxy.conf;
|
||||
# include secure.conf;
|
||||
proxy_pass http://192.168.249.4/;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host horde.fet.htu.tuwien.ac.at;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
location /mail3/ {
|
||||
include proxy.conf;
|
||||
include secure.conf;
|
||||
proxy_pass http://192.168.249.4/;
|
||||
proxy_set_header Host squirrelmail.fet.htu.tuwien.ac.at;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
location /images/ {
|
||||
include secure.conf;
|
||||
root /var/www/mail;
|
||||
}
|
||||
|
||||
location = /mail {
|
||||
return 301 https://$host;
|
||||
}
|
||||
|
||||
location /mail/ {
|
||||
include secure.conf;
|
||||
root /var/www/mail;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user