View Single Post
  #3  
Old 1st October 2010, 04:06
LinuxOnMyMac LinuxOnMyMac is offline
Junior Member
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi

Thank you, falko, for trying to help me.

The output of ls -la /var/www/html is similar to (I changed the name of the blog directories):

drwxr-xr-x 14 root root 4096 Sep 7 18:07 .
drwxr-xr-x 9 root root 4096 Sep 5 20:38 ..
drwxr-xr-x 3 apache apache 4096 Sep 9 22:28 firstblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 secondblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 thirdflyblog
drwxr-xr-x 11 apache apache 4096 Sep 12 02:36 fourthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 fifthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 sixthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 seventhblog
drwxr-xr-x 2 apache apache 4096 Sep 7 18:11 mailserver
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 eighththblog
drwxr-xr-x 2 apache apache 4096 Sep 7 17:58 mailserver
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 ninthblog
drwxr-xr-x 8 apache apache 4096 Sep 7 00:39 dnserveradmin

There are a number of vhosts on the server:

<VirtualHost *:80>
ServerAdmin webadmin@firstwebsite.com
DocumentRoot "/var/www/html"
ServerName firstwebsite.com
ErrorLog logs/firstwebsite.com-error_log
CustomLog logs/firstwebsite.vom-access_log common
</VirtualHost>

<VirtualHost *:443>
ServerAdmin webadmin@https://server.firstwebsite.com
DocumentRoot "/var/www/html/"
ServerName server.firstwebsite.com
ErrorLog logs/server.firstwebsite.com-error_log
CustomLog logs/server.firstwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.firstblog.com
DocumentRoot "/var/www/html/firstblog"
ServerName www.firstblog.com
ErrorLog logs/www.firstblog.com-error_log
CustomLog logs/www.firstblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.secondblog.com
DocumentRoot "/var/www/html/secondblog"
ServerName www.secondblog.com
ErrorLog logs/www.secondblog.com-error_log
CustomLog logs/www.secondblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.thirdblog.me
DocumentRoot "/var/www/html/thirdblog"
ServerName www.thirdblog.me
ErrorLog logs/www.thirdblog.me-error_log
CustomLog logs/www.thirdblog.me-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fourthblog.com
DocumentRoot "/var/www/html/fourthblog"
ServerName www.fourthblog.com
ErrorLog logs/www.fourthblog.com-error_log
CustomLog logs/www.fourthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fifthblog.com
DocumentRoot "/var/www/html/fifthblog"
ServerName www.fifthblog.com
ErrorLog logs/www.fifthblog.com-error_log
CustomLog logs/www.fifthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.sixthblog.com
DocumentRoot "/var/www/html/sixthblog"
ServerName www.sixthblog.com
ErrorLog logs/www.sixthblog.com-error_log
CustomLog logs/www.sixthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.seventhblog.com
DocumentRoot "/var/www/html/seventhblog"
ServerName www.seventhblog.com
ErrorLog logs/www.seventhblog.com-error_log
CustomLog logs/www.seventhblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.eighthblog.com
DocumentRoot "/var/www/html/eighthblog"
ServerName www.eighthblog.com
ErrorLog logs/www.eighthblog.com-error_log
CustomLog logs/www.eighthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.ninthblog.com
DocumentRoot "/var/www/html/ninthblog"
ServerName www.ninthblog.com
ErrorLog logs/www.ninthblog.com-error_log
CustomLog logs/www.ninthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.secondwebsite.com
DocumentRoot "/var/www/html"
ServerName www.secondwebsite.com
ErrorLog logs/www.secondwebsite.com-error_log
CustomLog logs/www.secondwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.thirdwebsite.com
DocumentRoot "/var/www/html"
ServerName www.thirdwebsite.com
ErrorLog logs/www.thirdwebsite.com-error_log
CustomLog logs/www.thirdwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fourthwebsite.com
DocumentRoot "/var/www/html"
ServerName www.fourthwebsite.com
ErrorLog logs/www.fourthwebsite.com-error_log
CustomLog logs/www.fourthwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fifthwebsite.com
DocumentRoot "/var/www/html"
ServerName www.fifthwebsite.com
ErrorLog logs/www.fifthwebsite.com-error_log
CustomLog logs/www.fifthwebsite.com-access_log common
</VirtualHost>

Please let me know what to try next.

BTW, I have the following directory permissions format:

<Directory "/var/www/html/documentrootsubdirectory">
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>

Again, thanks for your help.

Lady Techie

Last edited by LinuxOnMyMac; 1st October 2010 at 06:54.
Reply With Quote