server_name _; doesn't work
Ray
gunblad3 at gmail.com
Tue Mar 9 03:33:29 MSK 2010
Maxim is right.
Instead, use 'listen 80 default;' for that virtual host server block.
Ray.
On 3/9/10, Maxim Dounin <mdounin at mdounin.ru> wrote:
> Hello!
>
> On Mon, Mar 08, 2010 at 03:36:46PM -0500, kleinchris wrote:
>
>> 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
>
> It doesn't "means for all hosts". It's just some non-existant
> name.
>
> See here:
>
> http://nginx.org/en/docs/http/request_processing.html
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list