|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Creating subdomains with A records
Hi:
I have Apache 1.3.29 with apache. The mydomain.com is hosted with BIND DNS. The document root is: /var/www/html/ Lets say I wanted to create a folder like: /var/www/subdomains/phpMyAdmin/ How would I create: phpmyadmin.mydomain.com I've heard to just add an "A" record. I can do that, but how will I tell it to point to "/var/www/subdomains/phpMyAdmin", and NOT "/var/www/html/"? Thanks for your help!! Ken Cooper
__________________
Thanks! |
|
#2
|
||||
|
||||
|
You add a virtual host for the subdomain in your apache config.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
|
#3
|
|||
|
|||
|
Hi:
I did that, and it still didn't work. Well, I'll try again, and post if it works. Thanks for your help!! Ken Cooper |
|
#4
|
|||
|
|||
|
ok, this is weird. Everything works. If you go to my site:
http://www.coopercentral.org It shows the Apache test page, but there IS an index.html page. On the error log, it says the error "Directory index forbidden by rule". That means that there's no index.* setup. Here's my question. Basically apache is located in two different areas: /usr/local/apache and /etc/httpd Now my HTML stuff is in: /var/www/html But which config file do I edit? /usr/local/apache/conf/httpd.conf or /etc/httpd/conf/httpd.conf? That's what's messing me up. I still can't get the subdomains working. Thanks for your help!! Ken Cooper |
|
#5
|
||||
|
||||
|
I don't know if your file system stores last accessed times, but if it does, then you should restart apache then check to see which file was accessed most recently. That's the file you should edit.
And make sure your subdomain vhosts are BEFORE (or above) your root domain vhosts. |
|
#6
|
|||
|
|||
|
What is your OS? You have installed Apache twice, most likely once during your OS install and again when you wanted to install your websever. Each flavor of Linux usually includes Apache and has it's own method of controlling Apache. I suggest you make a post in the Apache board, and include your OS and Apache version, since this isn't a DNS issue.
__________________
UD Network Solutions |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Creating subdomains with A records |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|