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 12-22-2003, 07:12 PM   #1
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Rep: Reputation: 30
virtual host


nm got it fix

Last edited by ziggie216; 12-22-2003 at 07:15 PM.
 
Old 12-22-2003, 07:27 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
LQ.org really expresses that if you have a question and post it, but find the answer before you get any replies, you should share your solution as this might help other members or people that browse and use our site to find answers to questions that have already been asked.

Regards.
 
Old 12-22-2003, 07:38 PM   #3
ziggie216
Member
 
Registered: Oct 2003
Posts: 176

Original Poster
Rep: Reputation: 30
oh, I didnt want to repost the same question but i'll here it is..

I was trying to get create virtual host / subdomain for my dynamic ip. eg. subdomain.domain.com
Just make sure you have your "subdomain" register w/ the dns.
Here is my configuration for httpd.conf

NameVirtualHost *:80

//Not sure if the first part is needed
<VirtualHost *:80>
DocumentRoot /var/www/html
ServerName domain.com
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /home/subdomain
ScriptAlias /cgi-bin/ /home/subdomain/cgi-bin/
ServerName subdomain.domain.com
</VirtualHost>
 
  


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
Adding virtual host bestofmed Linux - Networking 2 09-28-2005 05:01 PM
virtual host in debian davidhk Debian 3 08-31-2005 04:39 PM
Virtual Host abridge Linux - Software 1 04-13-2005 08:35 AM
Virtual Host |Drakehash| Linux - Networking 0 07-17-2003 04:02 PM
VIrtual host thep Linux - General 10 08-06-2002 12:28 PM


All times are GMT -5. The time now is 02:59 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration