How to allow access by ip with virtualhosts ?

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

How to allow access by ip with virtualhosts ?

Postby greg2fs » 24. September 2010 12:52

Hello, I can't access my website through the ip of my server as soon as I use a virtualhost.
How to avoid that ?

Thanks
greg2fs
 
Posts: 7
Joined: 28. October 2009 20:23

Re: How to allow access by ip with virtualhosts ?

Postby JonB » 24. September 2010 15:45

Since you really have provided no details, such as your vhost info, its pretty hard to say.

If you used the NameVirtualHost directive, you will have to access them by their 'Names', as listed in their ServerName entries.

Did you follow the example in \xammp\apache\conf\extra\httpd-vhosts.conf?

Beyond that - the metaphysical answer to your question is "read and understand".

Good Luck
:)
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: How to allow access by ip with virtualhosts ?

Postby Ronneyy » 27. September 2010 16:39

Say I'd like to restrict access to a virtual host to multiple IP ranges
Ronneyy
 
Posts: 3
Joined: 27. September 2010 16:34

Re: How to allow access by ip with virtualhosts ?

Postby JonB » 27. September 2010 18:08

that's NOT what this topic was asking -

However - the answer is you probably should consider using a .htaccess file to control access.

Here are a couple good tuturials:

http://www.freewebmasterhelp.com/tutorials/htaccess/2

http://www.askapache.com/htaccess/htacc ... mple-files
(look down the page a bit)

Good Luck
:)
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


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 84 guests