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:
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Apr 2003
RE: Multiple Localhosts?
First of all, for these things don't use "localhosts" but virtualhosts.

In the apache config you can create virtual hosts.

Apache 2.2: http://httpd.apache.org/docs/2.2/vhosts/
Apache 2.0: http://httpd.apache.org/docs/2.0/vhosts/

In the apache config you add:

code:
NameVirtualHost *

If you want him to listen at all IP's you have.

Then for the vhosts, add this:
code:
<VirtualHost 123.123.123.123>
ServerAdmin webmaster@host.foo.com
DocumentRoot /www/docs/host.foo.com
ServerName host.foo.com
ErrorLog logs/host.foo.com-error_log
TransferLog logs/host.foo.com-access_log
</VirtualHost>
and for the second one
code:
<VirtualHost 123.123.123.123>
ServerAdmin webmaster@host.foo2.com
DocumentRoot /www/docs/host.foo2.com
ServerName host.foo2.com
ErrorLog logs/host.foo2.com-error_log
TransferLog logs/host.foo2.com-access_log
</VirtualHost>

You should adapt these things to your own settings, like the IP.

If you want to create "localhost2" you can edit your hostsfile.
In Windows XP this is located at
c:\WINDOWS\system32\drivers\etc\hosts

Normally it would look like this:
code:
127.0.0.1       localhost

Change it to

code:
127.0.0.1       localhost
127.0.0.1       localhost2

Should work. Good luck!

This post was edited on 10-26-2006 at 12:04 PM by Sypher.
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
10-26-2006 12:03 PM
Profile PM 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