LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   the dreaded virtual host...... (https://www.linuxquestions.org/questions/programming-9/the-dreaded-virtual-host-5779/)

Nyc0n 08-23-2001 05:49 PM

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


All times are GMT -5. The time now is 10:43 AM.