dzamanakos

Well-Known Member
Feb 15, 2014
63
4
58
cPanel Access Level
Root Administrator
Hi,
in my setup server.maindomain.com i have a reseller that uses the domain maindomain.com
when i type http://www.maindomain.com or http://maindomain.com i get redirected to webmail (i use webmail for non existing vhosts).
I 've checked the httpd.conf and there arent any virtual hosts with www as serveralias.
I 've setup ssl in this domain. the virtual host for ssl exists in httpd.conf and working. So i can browse with https://www.maindomain.com/mysite/index.php but not with http.

Is there something wrong with my config?

thank you in advance,

the /var/cpanel/userdata/user/maindomain.com file is :
---------------------------------------------------------------
---
Code:
customlog:
-
format: combined
target: /usr/local/apache/domlogs/maindomain.com
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/maindomain.com-bytes_log
documentroot: /home/user/public_html
group: user
hascgi: 1
homedir: /home/user
ifmodulemodsuphpc:
group: nobody
ip: "xxx.xxx.xxx.xxx"
owner: root
phpopenbasedirprotect: 1
port: 80
scriptalias:
-
path: /home/user/public_html/cgi-bin
url: /cgi-bin/
serveradmin: [email protected]
serveralias: www.maindomain.com
servername: maindomain.com
ssl: 1
usecanonicalname: 'Off'
user: smalls
userdirprotect: ''
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Yes, please run the following command and let us know if you notice any errors:

Code:
/scripts/rebuildhttpdconf
Also, check to make sure the domain name resolves to the correct IP address.

Thank you.
 

dzamanakos

Well-Known Member
Feb 15, 2014
63
4
58
cPanel Access Level
Root Administrator
Hi, thank you for your response,
I 've run /scripts/rebuildhttpdconf and i get :

info [rebuildhttpdconf] Missing IP for domain maindomain.com, using yyy.yyy.yyy.yyy
info [rebuildhttpdconf] Missing ServerName for domain maindomain.com, using maindomain.com
info [rebuildhttpdconf] Missing port for domain maindomain.com, using 80
info [rebuildhttpdconf] Missing user for domain maindomain.com, using nobody
info [rebuildhttpdconf] Missing owner for domain maindomain.com, force lookup to root
info [rebuildhttpdconf] Missing group for domain maindomain.com, using nobody
Built /usr/local/apache/conf/httpd.conf OK

Is there any extra file that i should check?

The ip of the reseller's site is xxx.xxx.xxx.xxx (dedicated to reseller, running ssl)
yyy.yyy.yyy.yyy is the shared ip that i have for the other sites.

ping maindomain.com returns the correct ip : xxx.xxx.xxx.xxx

In whm, list accounts the user has the correct ip xxx.xxx.xxx.xxx.

Should i have to check something else?
Thank you in advance,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I don't see anything that would lead to the problem you are experiencing. Please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
To update, it appears the issue was resolved by correcting some user files for "nobody" and the account username in /var/cpanel/userdata that had been incorrectly manually edited.

Thank you.