xampp for windows DNS problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Re: xampp for windows DNS problem

Postby JonB » 08. June 2010 11:47

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.

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: xampp for windows DNS problem

Postby Radzio » 08. June 2010 11:56

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.
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: xampp for windows DNS problem

Postby JonB » 08. June 2010 12:56

My bad - I missed what was done with dummy-host. I must need some of that sleep stuff. :D
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: xampp for windows DNS problem

Postby Radzio » 08. June 2010 13:06

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
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: xampp for windows DNS problem

Postby JonB » 08. June 2010 13:52

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:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: xampp for windows DNS problem

Postby m4v3n » 09. June 2010 02:35

Dear Radzio,

thanks a lot bro....it works now [img][/img]
m4v3n
 
Posts: 5
Joined: 08. June 2010 07:16

Re: xampp for windows DNS problem

Postby m4v3n » 09. June 2010 09:58

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:
m4v3n
 
Posts: 5
Joined: 08. June 2010 07:16

Re: xampp for windows DNS problem

Postby Radzio » 09. June 2010 10:05

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).
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 39 guests