I already did it. This is my mail VirtualHost file in the sites-enabled folder:
DirectoryIndex index.html index.php
RewriteRule ^/$ /mail [L,R]
Allow from all
ProxyPass /mail/ http://172.18.8.2:80/
ProxyPassReverse /mail/ http://172.18.8.2:80/
Also I created the mail
folder under /var/www but I suppose I must create the index.html or php file to redirect all the calls from that directory to the mail server. Does anybody tell me what to type in that file?
Im sorry but i'm newbie in these cases.