What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [Fixed] Multiple VirtualHosts?

[Fixed] Multiple VirtualHosts?
Author: Message:
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
O.P. Huh?  [Fixed] Multiple VirtualHosts?
I have a Apache server running on my desktop and I was wondering how I can get more than one virtual host, eg http://localhost/ is currently pointed to my main folder but I'd like another one, http://localhost2/ or w/e, to point to another folder for a specific site.

I've been told it is possible but I can't find a tutorial that has actualy worked.

Running:
Apache 2
PHP 5


Any help appreciated, thanks.


Solution:
In the hosts file it should look like:
code:
127.0.0.1 name1
127.0.0.2 name2
127.0.0.3 name3
And in the httpd.conf file it should be like this:
code:
<VirtualHost 127.0.0.1>
    DocumentRoot C:/path
    ServerName name1
</VirtualHost>

<VirtualHost 127.0.0.2>
    DocumentRoot C:/path/to2
    ServerName name2
</VirtualHost>

<VirtualHost 127.0.0.3>
    DocumentRoot C:/path/to/it
    ServerName name3
</VirtualHost>

This post was edited on 11-11-2006 at 07:26 PM by hmaster.
[Image: sig.png]
10-26-2006 10:38 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Fixed] Multiple VirtualHosts? - by hmaster on 10-26-2006 at 10:38 AM
RE: Multiple Localhosts? - by Sypher on 10-26-2006 at 12:03 PM
RE: Multiple VirtualHosts? - by hmaster on 10-26-2006 at 01:24 PM
RE: Multiple VirtualHosts? - by Sypher on 10-31-2006 at 01:56 PM
RE: Multiple VirtualHosts? - by Adeptus on 10-31-2006 at 02:55 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On