LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2001, 05:49 PM   #1
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
Angry the dreaded virtual host......


ive set up a web server using apache, i have one ip address and use the URL forwarding from http://www.dhs.org/ thats simple enough....but i also want to host my friends web site...we both have a URL forwarding address from the web site above.....i have tried all variations to try to get it to load each of our web sites when we type one or the other in.....we really dont want to have to use the "www.something.com/user" thing or the "/~user" thing....i know the professional web space companys have it and all there sites are set up on one server....is there any way you could tell me to do it....here are some variations ive tried....

NameVirtualHost nyc0n.2y.net

<VirtualHost nyc0n.2y.net>
DocumentRoot /home/http
</VirtualHost>

<VirtualHost nyc0n.2y.net>
ServerName nyc0n.2y.net
DocumentRoot /home/http/nyc0n
</VirtualHost>

<VirtualHost nyc0n.2y.net>
ServerName thrizakk.2y.net
DocumentRoot /home/http/thrakk
</VirtualHost>

and another one that looked promising was

NameVirtualHost nyc0n.2y.net
NameVirtualHost thrizakk.2y.net

<VirtualHost nyc0n.2y.net>
DocumentRoot /home/http
</VirtualHost>

<VirtualHost nyc0n.2y.net>
ServerName nyc0n.2y.net
DocumentRoot /home/http/nyc0n
</VirtualHost>

<VirtualHost thrizakk.2y.net>
ServerName thrizakk.2y.net
DocumentRoot /home/http/thrakk
</VirtualHost>

but when you type in the second thrizakk.2y.net it brings up the default page from /home/http....not from his dir /home/http/thrakk.....

does anyone know of a way to do this?

thanks

nyc0n
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Host abridge Linux - Software 1 04-13-2005 07:35 AM
Virtual Host Setup rickdeez Linux - Newbie 8 07-15-2004 07:16 PM
virtual host ziggie216 Linux - General 2 12-22-2003 06:38 PM
Virtual Host |Drakehash| Linux - Networking 0 07-17-2003 03:02 PM
VIrtual host thep Linux - General 10 08-06-2002 11:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:42 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