Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
April 30, 2015 01:52PM
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
Subject Author Posted

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

Francis Daly April 30, 2015 01:52PM

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

gariac May 01, 2015 08:50PM

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

halozen May 02, 2015 01:50AM

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

Francis Daly May 02, 2015 03:56AM

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

gariac May 03, 2015 08:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready