Here's a question for all of you apache experts out there:
I installed Mandrake 8.2, set up mysql & php. I changed the document root and default document (index.php) for apache. Everything worked just fine.
Everything was fine until I tried to set up apache to use name based virtual hosts. That's when everything went haywire. When I try to access ** ANYTHING ** on the web server, whether it be a document, image, etc I get a 500 server error. I do know that apache is reading the file to an extent, because the server error reports the correct serveradmin email address.
Apache doesn't complain when it starts. I know sometimes if you have errors (especially in httpd.conf) it will report them and refuse to start. Not the case here. Can anyone tell me what is going on?
I know I'm posting a lot of questions, but I'm just getting some of the cool features of linux figured out (samba, apache, mysql, etc.). I appreciate any help I can get. (thanks in advance).
This is my /etc/httpd/conf/vhosts/Vhosts.conf:
################# Vhosts.conf
#This is where we store the VirtualHosts configuration.
#
#This is needed for Frontpage support
Port 80
ServerRoot /etc/httpd
ResourceConfig /dev/null
AccessConfig /dev/null
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
NameVirtualHost 10.0.0.15
<VirtualHost *>
ServerName domain1.com:80
ServerAdmin
webmaster@domain1.com
ServerPath /
DocumentRoot /web
</VirtualHost>
<VirtualHost *>
ServerName
www.domain1.com:80
ServerAdmin
webmaster@domain1.com
ServerAlias
www.domain1.com www.domain1long.com
ServerPath /domain1
DocumentRoot /web/domain1
#RewriteOptions inherit
#ErrorLog /web/logs/domain1_log
</VirtualHost>
<VirtualHost *>
ServerName
www.domain2.com:80
ServerAdmin
webmaster@domain2.com
ServerAlias
www.domain2.com www.domain2long.com
ServerPath /domain2
DocumentRoot /web/domain2
#RewriteOptions inherit
#ErrorLog /web/logs/domain2_log
</VirtualHost>
<VirtualHost *>
ServerName
www.domain3.com:80
ServerAdmin
webmaster@domain1.com
ServerAlias *.domain3.com
ServerPath /lovelessash
DocumentRoot /web/domain3
#RewriteOptions inherit
#ErrorLog /web/logs/domain3_log
</VirtualHost>