Forum Index
Search Forum
Register
Log in
Current
7.0 Production build 6 Mar '07
7.1 Beta 5 build 7 Oct '07
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.
|
| View previous topic :: View next topic |
| Author |
Message |
SirArthur
Joined: 19 Aug 2004 Posts: 5
|
Posted: Wed 01 Sep '04 2:29 Post subject: Test Vhosts offline (Windows) |
|
|
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 |
|
shaggy
Joined: 06 Jul 2006 Posts: 19
|
Posted: Tue 09 Jan '07 1:12 Post subject: |
|
|
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 |
|
|
|