Forum Moderators: phranque

Message Too Old, No Replies

Subdomain Help

subdomain

         

Ybnorml

3:19 am on Feb 18, 2005 (gmt 0)

10+ Year Member



Hello,

I've got Apache running on my own server. I've got Dyndns.org doing my DNS for me. IPs for my site are static. I don't know why I'm having so much trouble with this but I'd like to figure out what I need to do so I can do subdomains. I read some threads on several sites but it seems that I'm only getting pieces of what I need to make that happen.

If I have mydomain.com and want a sub called pam.mydomain.com, what all is involved?

I have the following in my httpd.conf as far as Virtual Domains:

UseCanonicalName On
NameVirtualHost *:80

<VirtualHost 23.13.17.98:80>
ServerAdmin admin@mydomain.com
DocumentRoot /var/www/html
ServerName www.mydomain.com
</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@mydomain.com
ServerName pams.mydomain.com
DocumentRoot /var/www/html/pam
</VirtualHost>

I went to my DNS records and put in pam as a cname and pointed to mydomain.com. When I enter the subdomain as a URL it does to the TLD.

I saw on here also a way to check and see if mod_rewrite is enabled. Even though in my httpd.conf there is "LoadModule rewrite_module modules/mod_rewrite.so" (no quotes), I'm not sure it's working just by doing the redirect test in /htaccess.

If anyone could lend me some simple instructions with this I'd appreciate it greatly.

Regards,
Greg

Ybnorml

12:41 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Come on, guys! :) This site is full of good into and good replies to go along with it. Can someone please point me in the right direction with this?

Thanks