<p dir="ltr">You need to find how to create virtual host for inginx which involves setting up sites-available/domain file, symlink it to sites-enabled/ and restart nginx. You would also need to edit you host file on your pc to simulate dns resolve for testing purposes.</p>
<div class="gmail_quote">On May 2, 2015 8:51 AM, "gariac" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think I failed to explain my problem correctly. It seems to me whatever I<br>
do for the test would be on the server side, not client side. Studying your<br>
reply, I think your solution maps <a href="http://domain.com" target="_blank">domain.com</a> to ipaddress (dotted quad) from<br>
the client side. What I need to do is have the one ip address I have for the<br>
server  host iredmail and my website.<br>
<br>
Iredmail creates an index.html in /var/www with contents<br>
<br>
<html><br>
    <head><br>
        <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/"><br>
    </head><br>
</html><br>
<br>
I created a /var/www2 with a different index.html, but I don't see how nginx<br>
would know which directory to use.<br>
<br>
I was able to get nginx working with my website prior to having iredmail on<br>
the same server. Having both services on the same server is what confuses<br>
me.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,258551,258570#msg-258570" target="_blank">http://forum.nginx.org/read.php?2,258551,258570#msg-258570</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>