Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Re: Installed nginx with iredmail; how to add web content & test without DNS change (no replies)

$
0
0
On Tue, Apr 28, 2015 at 08:17:42PM -0400, gariac wrote:

Hi there,

> Iredmail puts its html in /var/www. I put a test page in /var/www2 and
> added a location line to point to it, but I'm confused on how to set this up
> since it is like hosting two websites at the same IP address. Obviously I
> need to test the server before changing the DNS.

To test the server, probably all you need is that your client resolves
the desired hostname to the new IP address.

You can test with something like

curl -i -H Host:host.domain http://ip.add.re.ss/

or by changing name resolution for your browser (for example, by using
your local "hosts" file).

There probably shouldn't be any nginx changes for this to happen.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>