httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hudak <jjhu...@gmail.com>
Subject Re: [users@httpd] Troubleshooting namebased virtual websites
Date Tue, 13 Jul 2010 14:39:08 GMT
I just checked in apache2.conf....ServerRoot "/etc/apache2"
That is where all the apache config information is located.  Doesn't
DocumentRoot dictate where the files to be served are located?
Thanks
J


On Tue, Jul 13, 2010 at 10:34 AM, John Hudak <jjhudak@gmail.com> wrote:

> Hmmm, I don't know how to set ServerRoot-where is it?
>
> by vhost config do you mean what sites are in sites-available?  if so, here
> it is:
>
> #  Example.com (/etc/apache2/sites-available/www.example.com)
>
> #
> <VirtualHost *>
>         ServerAdmin webmaster@example.com
>         ServerName  www.example.com
>         ServerAlias example.com
>
>         # Indexes + Directory Root.
>         DirectoryIndex index.html
>         DocumentRoot /var/www/www.example.com/htdocs/
>
>         # CGI Directory
>         ScriptAlias /cgi-bin/ /var/www/www.example.com/cgi-bin/
>
>         <Location /cgi-bin>
>                 Options +ExecCGI
>         </Location>
>
>
>         # Logfiles
>         ErrorLog  /var/www/www.example.com/logs/error.log
>
>         CustomLog /var/www/www.example.com/logs/access.log combined
> </VirtualHost>
>
> -John
>
>
>
>> It's looking for '/htdocs', or more likely, it is looking for
>> '/htdocs/foo/bar/quuz.html', but '/htdocs' isn't there, so why look
>> any further. Have you set your ServerRoot incorrectly?
>>
>> Can you show your vhost config?
>>
>> Cheers
>>
>> Tom
>>
>> ---------------------------------------------------------------------
>> 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@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>

Mime
View raw message