[Sussex] Apache + SSL + virtual host

Diego Moore diego.moore at gmail.com
Wed May 25 07:22:18 UTC 2005


On 5/24/05, Simon Huggins <huggie at earth.li> wrote:
> On Tue, May 24, 2005 at 05:22:44PM +0100, Diego Moore wrote:
> 
> Why are you confused that when you visit dev.example.com it tells you
> you're visiting dev.example.com?

Because I got a 404. dev.example.com is serving the pages from
example.com yet it clearly states that the server is dev.example.com

> Was some of your example broken?
> 
> 
> Check the error.log to find out what path it was using to find text.txt.
> You should see something like:
> [error] [client w.x.y.z] File does not exist: /var/www/dev.example.com/html/test.txt
> 
> Do you?

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>

Does this make sense?

Diego




More information about the Sussex mailing list