View Single Post

  #2 (permalink)  
Old 04-30-2004
Davide Bianchi
 
Posts: n/a
Default Re: ssl vhost ignoring DocRoot option

D Gargan <dgargan@sbcglobal.net> wrote:
> I have an apache2 install - all stock from mdk rpms. I have a few vhosts
> configured which work fine. I have one ssl vhost which is ignoring my
> DocumentRoot line - when connecting to port 443 the default webserver
> DocRoot comes up. Here are some details from my configuration:


You need to have

NameVirtualHost *:80
NameVirtualHost *:443

Then then "normal" vhost configuration:

<VirtualHost _default_ *:443>
....
</VirtualHost>

<VirtualHost _default_ *:80>
...
</VirtualHost>

Usually the whole part related to SSL is in <IfModule> blocks so
if you start Apache without SSL it won't give you pile of errors.

Davide

--
| Nature abhors a hero. For one thing, he violates the law of
| conservation of energy. For another, how can it be the survival of
| the fittest when the fittest keeps putting himself in situations where
| he is most likely to be creamed?