Re: IP address discimination

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

 



Boyle Owen wrote:
You must have a NameVirtualHost directive somewhere for 1.2.3.4 (any
included files?). Anyway, why fight it? You absolutely *need*
NameVirtualHost to do name-based virtual-hosting so just type it in and
end the pain.
I found them in httpd.include - it begins like this:
NameVirtualHost 1.2.3.4:80
NameVirtualHost 1.2.3.5:80
..
NameVirtualHost 1.2.3.4:443
NameVirtualHost 1.2.3.5:443

Couple of other points... - Why use ServerAlias instead of ServerName? Maybe it works, but then I
guess you could drive a car by operating the clutch with your right
foot, too.
So I changed httpd.conf to read as follows, and the "overlapping" error went away:

<VirtualHost *>
ServerName example1.com
Redirect permanent / http://www.example1.com/
</VirtualHost>

<VirtualHost *>
ServerName example2.com
Redirect permanent / http://www.example2.com/
</VirtualHost>

But using http://example1.com in a browser didn't do the redirect.
Is this what you meant? Thanks for the help so far.

--
--------------------------
http://www.phonewebcam.com
john.steel@xxxxxxxxxxxxxxx


---------------------------------------------------------------------
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