Re: Trying to serve pages to localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> mydomain.com.conf:
> <VirtualHost *:80>
...
>         #ServerName www.example.com

This can be problematic, I suggest choosing an explicit ServerName here.
Otherwise the systems own hostname is substituted and when you add a
later virtualhost with it, it will be unreachable
Probably not the culprit right now though.

> localhost2.conf:
> <VirtualHost localhost:80>
I strongly suggest *:80 above.  Hostnames inside <virtualhost> are a
red flag I check for first for these kinds of vhost mapping issue

>         #ServerName www.example.com
ServerName localhost to go with the *:80

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux