Re: Troubleshooting namebased virtual websites

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux