Thomas Andersson wrote:
> Hi!
>
> Does the httpd config differ much between 1.3 and 2.0?
> The reason I wonder is becouse I just reinstalled my system and in the new
> system I went with 2.0 and copied most entries from the 1.3 config, but now
> my virtual hosts doesn't work anymore.. every time I enter a domainname that
> should lead to a virtual host it just gives me the main page instead...
>
> What do I need to change?
I think in apache's site there's a "quick guide" on changes from
version 1.3 to version 2. If not, there is in RedHat's site:
<a style='text-decoration: underline;' href="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-httpd-v2-mig.html" target="_blank">http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-htt...v2-mig.</a>
Be careful if you want to use SSL with name-based virtual hosts;
that used to work on apache 1.3, but according to the documentation
of apache 2.0, that can NOT be done because of the way SSL works.
I did indeed verify (after about a week's fight with the configuration
files) that it won't work, and I had to change the IP of the secure
hostname -- it was the only way it would work. Right now, I have
two IP's: one of them is handling multiple [name-based] virtual
hosts, and the other IP is handling only the secure virtual host.
For the rest, Virtual Hosts were working like a charm from the
beginning (i.e., before I tried to setup the SSL certificate to
activate the secure virtual host), doing some trivial tune-up
to the configuration file (the default configuration file that
comes with apache on RedHat 9).
HTH,
Carlos
--<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Upgrading 1.3 -> 2.0 vhosts?