romanus

Well-Known Member
Jul 17, 2004
68
0
156
I have a wierd situation,

I have one domain I manage from netsol nameservers and point the a record to my webserver. I tried to add a subdomain to the site by adding another a record at netsol and doing the same through the cpanel onthe site.

For some reason though, the subdomain won't resolve to the subdomain on the suerver - it just goes to the domain name. httpd.conf has the correct entries.

Can anyone help me? Thanks in advance.
 

gounder

Member
Dec 4, 2001
12
0
301
Bay Area
How long has it been since you created the subdomain??

Give it some time if you just created it. It takes some time to resolve.
 

romanus

Well-Known Member
Jul 17, 2004
68
0
156
the subdomain resolves to the domain. just not the subdomain directory of the domain.
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
romanus said:
the subdomain resolves to the domain. just not the subdomain directory of the domain.
Are u sure that the httpd.conf entry is correct ?
 

romanus

Well-Known Member
Jul 17, 2004
68
0
156
Quite sure. It is at the end of the httpd.conf file, maybe I should move the entry up by the original entry for that domain??
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
romanus said:
Quite sure. It is at the end of the httpd.conf file, maybe I should move the entry up by the original entry for that domain??
Well I am not sure with the information you have given. Will have to see to it to find out what actaully is the issue.
 

romanus

Well-Known Member
Jul 17, 2004
68
0
156
here it is

Code:
<VirtualHost xx.xx.xxx.xxx>
ServerAlias www.owa.xxx.com
ServerAdmin [email protected]
DocumentRoot /xxxx/accnamei/public_html/owa
BytesLog domlogs/owa.xxxx.com-bytes_log
ServerName owa.xxxx.com

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

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

User accname
Group accname
CustomLog /usr/local/apache/domlogs/owa.xxxx.com combined
ScriptAlias /cgi-bin/ /xxxx/accname/public_html/owa/cgi-bin/
</VirtualHost>