DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 26th, 2004, 05:07 PM
Coopercentral2 Coopercentral2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: US
Posts: 261 Coopercentral2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 29 sec
Reputation Power: 6
Send a message via AIM to Coopercentral2
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!

Reply With Quote
  #2  
Old February 26th, 2004, 07:47 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
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

Reply With Quote
  #3  
Old February 26th, 2004, 08:21 PM
Coopercentral2 Coopercentral2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: US
Posts: 261 Coopercentral2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 29 sec
Reputation Power: 6
Send a message via AIM to Coopercentral2
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

Reply With Quote
  #4  
Old February 26th, 2004, 08:51 PM
Coopercentral2 Coopercentral2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: US
Posts: 261 Coopercentral2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 54 m 29 sec
Reputation Power: 6
Send a message via AIM to Coopercentral2
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

Reply With Quote
  #5  
Old February 26th, 2004, 09:08 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 35 m 27 sec
Reputation Power: 77
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.

Reply With Quote
  #6  
Old February 26th, 2004, 09:56 PM
freemans-web freemans-web is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 258 freemans-web User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 50 sec
Reputation Power: 5
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Creating subdomains with A records


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway