Forum Index Search Forum Register Log in

Runs on XP to Win 10

Current

Download 7.0

Download 7.1 Beta5 upgrade



A donation makes a contribution towards the time and effort that's going in to running this site.

Steffen

Contact:
My mail address is
at the top of the paypal form :

Your donations will help to keep this site alive and well.


Update your links !! November 2016 the forum is at www.apachelounge.com/sambar

In the forum there are links to sambarserver.info,
replace "sambarserver.info" with "apachelounge.com/sambar"
Test Vhosts offline (Windows)

 
Post new topic   Reply to topic    Sambar Forum Index -> How-to's & Documentation & Tips
View previous topic :: View next topic  
Author Message
SirArthur



Joined: 19 Aug 2004
Posts: 5

PostPosted: Wed 01 Sep '04 2:29    Post subject: Test Vhosts offline (Windows) Reply with quote

This is a simply trick to give your own computer multiple names (as many as you want), and so let you run "Vhosts" and test it before launch it on Web enviroment.

1) Create a Vhost and give it a name (don't use existing names on the domain /eg DON'T USE .com, .org., .biz, .net or so). Let's say we create a Vhost named *.mybestfriendsite.mc

2) Open the file C:\Windows\System32\drivers\etc\hosts with NotePad

3) Add an entry named www.bestfriendsite.mc 127.0.0.1

4) Save it

Now you can open your browser and navigate to www.bestfriendsite.mc and you are on your local test Vhost's site. (Note: Vhosts created this way will not be accessible from internet).
Back to top
View user's profile
shaggy



Joined: 06 Jul 2006
Posts: 19

PostPosted: Tue 09 Jan '07 1:12    Post subject: Reply with quote

sirarthur,

try this aggrivating vhost configuration.

windows host file

127.0.0.1 localhost
192.168.0.1 server01

Now let's try this:
http://server01/ <----into browser (that is if u have sambar configed like that-which I do)

http://here.server01/
http://here2.server01/
Broadcasted acrossed a network
On ONE/the same computer (server01)
Bind installed
here = A folder
here2 = A totally different folder then "here" is

Setup/config Sambar vhost somehow to do this.

For example:

http://forum.server01/ = phpBB = C:\path to Sambar\docs\forum\<folder>

http://store.server01/ -or- http://biz.server01/ = OSCommerence = C:\path to Sambar\docs\biz\<folder>

So basically if u pull up http://forum.server01/ acrossed the network it'll pull up phpBB and if u pull up http://store.server01/ it'll pull up OSCommerence. And http://store.server01/ will not pull up phpBB and visa versa.

Is this possible? And if so how? Good luck on this one.
Back to top
View user's profile

Post new topic   Reply to topic    Sambar Forum Index -> How-to's & Documentation & Tips
Page 1 of 1