Page 2 of 2

Re: xampp for windows DNS problem

PostPosted: 08. June 2010 11:47
by JonB
I'm not sure you can nest the root of a vhost inside the root of another. Wouldn't you effectively be exposing the 'lower level' hosts files as part of the structure of the original site? I guess we will see,

if I had:

site0/htdocs -- and under that was
site0/htdocs/vhosts/site1/htdocs,

I'm thinking site0's directives apply to both.

Not sure, I have never seen a case where the vhosts were nested.

:?:

Re: xampp for windows DNS problem

PostPosted: 08. June 2010 11:56
by Radzio
JonB wrote:I'm not sure you can nest the root of a vhost inside the root of another. Wouldn't you effectively be exposing the 'lower level' hosts files as part of the structure of the original site?

Where do you see nesting?
All three sites have separate directories. None of them is parent of another.

Re: xampp for windows DNS problem

PostPosted: 08. June 2010 12:56
by JonB
My bad - I missed what was done with dummy-host. I must need some of that sleep stuff. :D

Re: xampp for windows DNS problem

PostPosted: 08. June 2010 13:06
by Radzio
JonB wrote:My bad - I missed what was done with dummy-host. I must need some of that sleep stuff. :D

These commented-out aren't nested either. You really need a lot of sleep :D

Re: xampp for windows DNS problem

PostPosted: 08. June 2010 13:52
by JonB
I do - zero sleepy for now about 26 hrs. due to none-internet-geek-related issues (AC in my building is deado).

Sleep in the grave as they say...
:mrgreen:

Re: xampp for windows DNS problem

PostPosted: 09. June 2010 02:35
by m4v3n
Dear Radzio,

thanks a lot bro....it works now [img][/img]

Re: xampp for windows DNS problem

PostPosted: 09. June 2010 09:58
by m4v3n
Dear Radzio,

After i change the Name VirtualHost become *:80.....i could open all my 3 sites from other PCs, but i cannot open my localhost's site (in this case xampp"s site) anymore on my local PC or other PCs.

How to fix it ? need your help soon. Thanks a lot. :roll:

Re: xampp for windows DNS problem

PostPosted: 09. June 2010 10:05
by Radzio
If you want to access your xampp default htdocs then you must create appropriate VirtualHost.
For access from any computer:
Code: Select all
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs"
ServerName desired_name
</VirtualHost>

Remember also that first VirtualHost you define becomes the default one (in other words: the one that will be used if virtualhost for specified hostname is not found).