Re: VirtualHost / subdomain problems

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

 



Thank you very much, it is working now.

On Sat, Nov 8, 2008 at 4:04 AM, Krist van Besien
<krist.vanbesien@xxxxxxxxx> wrote:
> On Sat, Nov 8, 2008 at 5:52 AM, Giancarlo Rivas <giaym.mail@xxxxxxxxx> wrote:
>
>> NameVirtualHost
>> =============================
>> Originally I didn't have NameVirtualHost but now I have this line before the
>> virtualhost definitions:
>> NameVirtualHost <static ip address>:80
>>
>> I can't seem to do what everyone can, I hope I am just missing something
>> simple.
>
> What you missed is that the value you give the NameVirtualHost
> directive must be identical to what you use in your <VirtualHost>
> blocks.
>
> So if your NameVirtualHost statement looks like this:
>
> NameVirtualhost 123.4.5.6:80
>
> Than your <VirtualHosts> blocks must start like this:
> <VirtualHost 123.4.5.6:80>
>
> Putting an IP address in the NameVirtualHost directive is usually not
> needed, and putting the static IP addres of the router in there is
> certainly not going to work. The only IP address that would make sense
> here would be the local address of the machine apache runs on. You
> usually don't need to worry about your apache server's internal
> address though.
>
> The best solution usually is to have this:
>
> NameVirtualHost   *:80
>
> <VirtualHost *:80>
> # First, default virtualhost.
> ...
> </VirtualHost *:80>
> <VirtualHost *:80>
> # Second host...
> ...
> <VirtualHost>
>
> and so on.
>
> To test things you can start apache like this:
>
> httpd -S
>
> This should list all the virtualhosts apache found in the config.
>
> HTH,
>
> Krist
>
>
> --
> krist.vanbesien@xxxxxxxxx
> krist@xxxxxxxxxxxxx
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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