Welcome! Log In Create A New Profile

Advanced

Re: Testing Server without domain name

António P. P. Almeida
July 23, 2011 08:20AM
On 23 Jul 2011 13h07 WEST, christian.freisen@googlemail.com wrote:

> Hi There,
>
> at the moment I'm waiting for my Domain-Name (because of some
> problems this will last a few days).
>
> Now I wanna test nginx only with IP-Adress. This is no Problem for
> Default but how about sub-Domains? Is it possible to internally map
> 1.2.3.4/abrakadabra to abrakadabra.1.2.3.4? With domain-Name this
> seems to be no problem, but without?

Not sure I understand your question. But I run nginx on my dev
machines using only the loop device. Most of my stuff are drupal
sites. I run each site on a different port. That way the dev
environment gets easily mapped to the production environment by just
changing a few values of some key directives, like listen, root and
specifying a server_name.

E.g.:

server {
listen [::]:8801;

(...)
}

Or

server {
listen 1.2.3.4:80;

(...)
}

....

server {
listen 1.2.3.4:8080;

(...)
}

HTH,
--- appa

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

Testing Server without domain name

Christian Becker July 23, 2011 08:10AM

Re: Testing Server without domain name

António P. P. Almeida July 23, 2011 08:20AM

Re: Testing Server without domain name

vesperto July 23, 2011 08:24AM

Re: Testing Server without domain name

António P. P. Almeida July 23, 2011 08:24AM

Re: Testing Server without domain name

Hendrik Schumacher July 23, 2011 09:56AM

Re: Testing Server without domain name

Gelonida July 23, 2011 04:22PM

Re: Testing Server without domain name

Malte Geierhos July 23, 2011 04:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
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