~user works but domain does not

fuzzie

Well-Known Member
Oct 12, 2002
131
0
166
http://IP/~user works just fine, but http://domain.com does not.
I have tried:
1. editing httpd.conf making sure the virtual domain is set up right. It is set up like others that are working.
2. making sure /etc/hosts is right.
3. removing and recreating the user under a different user name.
4. restarting apache
5. rebooting
6. Changing permissions, chmod 755
7. Changing ownership chown user:group

My dns points to the right server, and has for about a week.

When I try domain.com, I get the default cPanel index page...there is content in the public_html dir.
Totally at a lost.

I know it is something simple, but it escapes me.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
fuzzie said:
http://IP/~user works just fine, but http://domain.com does not.
I have tried:
1. editing httpd.conf making sure the virtual domain is set up right. It is set up like others that are working.
2. making sure /etc/hosts is right.
3. removing and recreating the user under a different user name.
4. restarting apache
5. rebooting
6. Changing permissions, chmod 755
7. Changing ownership chown user:group

My dns points to the right server, and has for about a week.

When I try domain.com, I get the default cPanel index page...there is content in the public_html dir.
Totally at a lost.
Make sure the NSs are updated with your registrar, and set in the DNS zone of that site. Take a look at the DNS zone of this domain and make sure the entries are correct. Get detailed information about this domain at: www.dnsreport.com
 

fuzzie

Well-Known Member
Oct 12, 2002
131
0
166
sure....

<VirtualHost 68.54.178.42>
ServerAlias taylorsoutpost.com
ServerAdmin [email protected]
DocumentRoot /home/taylors/public_html
BytesLog domlogs/taylorsoutpost.com-bytes_log
ServerName www.taylorsoutpost.com

<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled taylors
</IfModule>

<IfModule mod_php4.c>
php_admin_value open_basedir "/home/taylorso:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/taylorso:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>

User taylors
Group taylors
CustomLog /usr/local/apache/domlogs/taylorsoutpost.com combined
ScriptAlias /cgi-bin/ /home/taylors/public_html/cgi-bin/
</VirtualHost>
 

fuzzie

Well-Known Member
Oct 12, 2002
131
0
166
Fixed

Thanks for the insight. I fixed this. I moved the server inside a firewall, and port forwarded to the private IP. WHM was still set at the public IP, which broke the httpd.conf file.

Changed httpd.cong to the private IP and works like a charm.