Page 1 of 1

How to allow access by ip with virtualhosts ?

PostPosted: 24. September 2010 12:52
by greg2fs
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

Re: How to allow access by ip with virtualhosts ?

PostPosted: 24. September 2010 15:45
by JonB
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
:)

Re: How to allow access by ip with virtualhosts ?

PostPosted: 27. September 2010 16:39
by Ronneyy
Say I'd like to restrict access to a virtual host to multiple IP ranges

Re: How to allow access by ip with virtualhosts ?

PostPosted: 27. September 2010 18:08
by JonB
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
:)