Second Virtual Host gives a 404 page

I have question:

I run at a CentOS 5 server Webmin 1.350 with Virtualmin 3.43.
I can make one Virtual Host and its reachable at http://localhost/domainname, but if I make a second Virtual Host, then I get a 404 page. And there are no error_log’s at this second domainname. Can somebody help me with this problem?
The documentroot is /home/*/public_html. And beneath find you the Virtual Host settings in the Apache module httpd.conf.

<VirtualHost ...:80>
SuexecUserGroup "#502" "#503"
ServerName NAME
ServerAlias www.NAME
DocumentRoot /home/NAME/public_html
ErrorLog /home/NAME/logs/error_log
CustomLog /home/NAME/logs/access_log combined
ScriptAlias /cgi-bin/ /home/NAME/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/NAME/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
<Directory /home/NAME/cgi-bin>
allow from all

Kind regards


I’m also having virtual host problems on CentOS 5.

You’re aware that this thread is 4 years old? :slight_smile: