Welcome! Log In Create A New Profile

Advanced

server_name _; doesn't work

March 08, 2010 03:36PM
Hello, when I set a default vhosts with server_name _; it doesn't work. Here the example file:
server {
listen 80;
server_name _ ; # underdash means for all hosts

location / {
root /var/www/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
}
Subject Author Posted

server_name _; doesn't work

kleinchris March 08, 2010 03:36PM

Re: server_name _; doesn't work

vesperto March 08, 2010 04:34PM

Re: server_name _; doesn't work

Maxim Dounin March 08, 2010 04:58PM

Re: server_name _; doesn't work

Ray March 08, 2010 07:36PM

Re: server_name _; doesn't work

kleinchris March 08, 2010 07:48PM

Re: server_name _; doesn't work

kleinchris March 08, 2010 07:50PM

Re: server_name _; doesn't work

Igor Sysoev March 09, 2010 02:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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