How to change URL for webwail?


#1

Hi!

I try to use Nethserver as a mail server role only. No any web sites do not plan to use.
Can I change default webmail URL
https://NSserver_IP/webmail
to easy URL
https://NSserver_IP
or
http_NSserver_IP (cannot put more then 2 links as a new user:-))
which automaticaly will redirected to secure https page?

WBR, Vladimir.


(Filippo Carletti) #2

I usually call the server “mail.example.org” and add an http redirect.

# cat  /etc/httpd/conf.d/webmail.conf
<VirtualHost *:80>
ServerName mail.example.org
Redirect permanent / http://mail.example.org/webmail
</VirtualHost>

Please let me know if you succeed, this could become a FAQ.


#3

Thanks Filippo!!! It’s work, but I add https instead of http.
So my webmail.conf

<VirtualHost *:80>
ServerName mail.tech-str.ru
Redirect permanent / https://mail.tech-str.ru/webmail
</VirtualHost>

WBR to you and Nethserver project, Volodya.