Topic: Redirect to localhost/mail
Hey Guys,
I am looking to run a webserver and my mailclient on the same server. I would like to secure both using SSL and I edited the config accordingly:
# Note: This file must be loaded before other virtual host config files,
#
# HTTPS
server {
listen 443;
server_name mail.xevoo.de;
root /var/www/html/;
index index.php index.html;
include /etc/nginx/templates/misc.tmpl;
include /etc/nginx/templates/ssl.tmpl;
include /etc/nginx/templates/iredadmin.tmpl;
include /etc/nginx/templates/roundcube.tmpl;
include /etc/nginx/templates/sogo.tmpl;
include /etc/nginx/templates/netdata.tmpl;
include /etc/nginx/templates/php-catchall.tmpl;
include /etc/nginx/templates/stub_status.tmpl;
}
server {
listen 443;
server_name xevoo.de;
root /var/www/test/;
index index.php index.html;
}
But when I try to connect to my main domain xevoo.de it always redirects me to xevoo.de/mail
I couldnt find any answer to my problem online, so I am counting on you guys now.
Thx in advance
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.