[Sussex] Apache + SSL + virtual host

Colin Tuckley colin at tuckley.org
Wed May 25 07:47:00 UTC 2005


Diego Moore wrote:

> Thats the issue. I'm getting:
> 
> [Tue May 24 16:56:56 2005] [error] [client w.x.y.z] File does not
> exist: /var/www/html/test.txt
> 
> Even though I have:
> 
> <VirtualHost dev.example.com:80>
> DocumentRoot /var/www/dev.example.com/html
> ServerName dev.example.com
> <Directory "/var/www/dev.example.com/html">
> allow from all
> Options +Indexes
> </Directory>
> </VirtualHost>

I seem to remember reading somewhere that what you are trying to do is
impossible.

You can't run virtual hosts and a secure server from the same instance of httpd.

The reason is (I believe) that you need to be able to inspect the incoming
request to determine which virtual host it is for, but with a secure server
you can't do that. Maybe someone who understands apache better can give a
better reason.

-- 
Colin Tuckley      |  colin at tuckley.org  |  PGP/GnuPG Key Id
+44(0)1903 236872  |  +44(0)7799 143369  |     0x1B3045CE

Error 1232: Windows has run out of errors.  Run Windows Update to download more.




More information about the Sussex mailing list