Welcome! Log In Create A New Profile

Advanced

IP as a server name

May 26, 2011 06:11AM
Hi there!

I have a question about nginx configuration file. How can I configure a server if I want my site to be available under a domain name and IP address. I would like to have something like:
http(s)://myhost.mydomain/foo/
and
http(s)://XXX.XXX.XXX.XXX/foo/
to be available simultaneously.

I noticed that it basically works but problem occurs on redirections from my webapp (Nginx is a reverse proxy for it). It seems that on redirects nginx is obtaining a server_name from OS configuration.

Can You please suggest some configuration?

I am using nginx 0.6.39 but will try to upgrade if it is necessary.

Regards

SÅ‚awek
Subject Author Posted

IP as a server name

slafs May 26, 2011 06:11AM

Re: IP as a server name

slafs May 26, 2011 06:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready