LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2003, 09:02 AM   #1
DoobyWho
Member
 
Registered: Feb 2003
Posts: 50

Rep: Reputation: 15
Subdomain help


I have a client who has us serving a development box in house. I've set it up and allowed the outside world to access it through the router. Now, my question is. We've set up subdomain.ourdomain.com to point to our servers IP address and it works fine. But how do i set it up so that it automatically gets directed to a specific directory? I'm guessing it has something to do with DNS? How do I get redhat 8 to take any requests coming from subdomain.ourdomain.com and send it to /var/html/thisdirectory instead of /var/html ?
 
Old 04-14-2003, 09:09 AM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Im going to assume that youre using apache and are talking about serving web pages. If so, then you want Virtual Hosts.

Apache's docs on this are here. http://httpd.apache.org/docs-2.0/vhosts/
 
Old 04-14-2003, 11:01 AM   #3
DoobyWho
Member
 
Registered: Feb 2003
Posts: 50

Original Poster
Rep: Reputation: 15
So basically just add in:


<VirtualHost *>

DocumentRoot /var/html/thisdirectory
ServerName subdomain.ourdomain.com

</VirtualHost>

????
 
Old 04-14-2003, 06:51 PM   #4
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Yes. Here is an example one of mine:

Code:
<VirtualHost *>
	ServerName centuroncomputers.staticcling.net
	DocumentRoot /home/centuron/public_html
	ServerSignature email
	DirectoryIndex index.php index.html index.htm index.php
	LogLevel warn
	HostNameLookups off
</VirtualHost>

green_dragon37
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a subdomain? Spreegem Debian 7 02-06-2006 10:37 AM
ftp and subdomain unix20009876 Linux - Software 1 11-16-2005 10:59 AM
Apache 1.3.33 and subdomain fai Linux - Software 1 07-15-2005 03:49 AM
subdomain and apache ziggie216 Linux - Newbie 1 11-12-2003 02:36 PM
subdomain deepak Linux - Networking 2 03-01-2001 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration