I have problem with handling two different home directories into one
domain. For example my domain is mydomain.net and it points to directory
/home/emers/www/
[…]
server {
listen 80;
server_name mydomain.net;
access_log /var/log/www/access_log_emers combined;
error_log /var/log/www/error_log_emers error;
root /home/emers/www;
index index.html index.htm index.php;
Thanks for the answer. Your solution works almost great. Addind two
followed locations seems to solve the problem, when URI hasn’t folders
inside mail directory (f.e: mydomain.com/mail/index.php), but scripts in
subdirectories in /home/mail/atmailopen/*/ tree redirect to mydomain.com/ link, instead of MyDomain Login.