I have all the files for one of my accounts uploaded to the site, and the Vhost is set up.
I set my local machine to go to 192.168.1.10 (local IP of my server) for the domain name mydomain.com
However, when I visit "mydomain.com" in my browser, it gives me the CentOS default page. Why isn't it directing such traffic to the account for mydomain.com which I set up in Apache?
Matthew
PS I verified that there is only ONE index file (index.php) available -- there is no index.html or index.htm in the home directory.
.htaccess:
#<IfModule mod_suphp.c>
# suPHP_ConfigPath /home/mydomain
# <Files php.ini>
# order allow,deny
# deny from all
# </Files>
#</IfModule>
ErrorDocument 401 /home/mydomain/public_html/index.php
ErrorDocument 404 /home/mydomain/public_html/index.php
ErrorDocument 500 /home/mydomain/public_html/index.php
DirectoryIndex index.php index.html index.htm
AddHandler application/x-httpd-php53 .php .html .htm
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
# Use PHP53 as default
#AddHandler application/x-httpd-php53 .php
XSendFile on
Vhosts:
<VirtualHost 192.168.1.20:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/mydomain/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/mydomain/public_html/cgi-bin/
CustomLog /usr/local/apache/domlogs/mydomain.com.bytes bytes
CustomLog /usr/local/apache/domlogs/mydomain.com.log combined
ErrorLog /usr/local/apache/domlogs/mydomain.com.error.log
# Custom settings are loaded below this line (if any exist)
# IncludeOptional "/usr/local/apache/conf/userdata/mydomain/mydomain.com/*.conf"
<IfModule mod_setenvif.c>
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
</IfModule>
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled mydomain
</IfModule>
<IfModule mod_suexec.c>
SuexecUserGroup mydomain mydomain
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup mydomain mydomain
suPHP_ConfigPath /home/mydomain
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid mydomain mydomain
</IfModule>
<IfModule itk.c>
AssignUserID mydomain mydomain
</IfModule>
<Directory "/home/mydomain/public_html">
Options -Indexes -FollowSymLinks
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
</VirtualHost>