LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   virtual host (https://www.linuxquestions.org/questions/linux-general-1/virtual-host-128207/)

ziggie216 12-22-2003 06:12 PM

virtual host
 
nm got it fix

trickykid 12-22-2003 06:27 PM

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.

ziggie216 12-22-2003 06:38 PM

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>


All times are GMT -5. The time now is 01:51 AM.