Posted by:
tspesh
(---.hsd1.il.comcast.net)
Spectacular thanks!
I had no idea you could do this:
<Directory "D:/websrc/www/site1">
AllowOverride All
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
#If you want to allow access from your internal network
# For specific ip addresses add one line per ip address
#Allow from 192.168.0.100
# For every ip in the subnet, just use the first 3 numbers of the subnet
#Allow from 192.168.1
</Directory>
RiggsFolly Wrote:
-------------------------------------------------------
> I assume you vhosts file looks something like
> this.
>
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost *:80
>
> ## must be first so the the wamp menu page loads
> when you use just localhost as the domain name
>
> DocumentRoot "C:/wamp/www"
> ServerName localhost
> Order Deny,Allow
> Deny from all
> Allow from 127.0.0.1
> # You would never want a remote user to see
> this wamp config page.
>
>
>
> DocumentRoot "C:/websites/site1"
> ServerName site1.localhost
> Options Indexes FollowSymLinks
>
> AllowOverride All
> Order Deny,Allow
> Deny from all
> Allow from 127.0.0.1
> #If you want to allow access from your
> internal network
> # For specific ip addresses add one line per
> ip address
> #Allow from 192.168.0.100
> # For every ip in the subnet, just use the
> first 3 numbers of the subnet
> #Allow from 192.168.1
>
>
>
>
> Note if apache cannot find the domain you enter it
> will default to the first domain in the vhosts
> file
> Thats why you place the wamp stuff first.
> So check that your hosts file contains:
>
> 127.0.0.1 test.email.com
>
> and of course any other domains you want to be
> able to access by name