Installed nginx with iredmail; how to add web content & test without DNS change

Umarzuki Mochlis umarzuki at gmail.com
Sat May 2 05:49:16 UTC 2015


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.
On May 2, 2015 8:51 AM, "gariac" <nginx-forum at nginx.us> wrote:

> I think I failed to explain my problem correctly. It seems to me whatever I
> do for the test would be on the server side, not client side. Studying your
> reply, I think your solution maps domain.com to ipaddress (dotted quad)
> from
> the client side. What I need to do is have the one ip address I have for
> the
> server  host iredmail and my website.
>
> Iredmail creates an index.html in /var/www with contents
>
> <html>
>     <head>
>         <meta HTTP-EQUIV="REFRESH" content="0; url=/mail/">
>     </head>
> </html>
>
> I created a /var/www2 with a different index.html, but I don't see how
> nginx
> would know which directory to use.
>
> I was able to get nginx working with my website prior to having iredmail on
> the same server. Having both services on the same server is what confuses
> me.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,258551,258570#msg-258570
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150502/51d77d35/attachment-0001.html>


More information about the nginx mailing list