Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
But as it is a full version of Apache all you need is a little knowledge of the server you are
using.
The simple ( hammer to crack a nut ) way is to use the 'Put Online' wampmanager menu
option.
This however tells Apache it can accept connections from any ip address in the universe.
That's not a problem as long as you have not port forwarded port 80 on your router, or never
ever will attempt to in the future.
The more sensible way is to edit the httpd.conf file ( again using the wampmanager menu's )
and change the Apache access security manually.
<Directory "d:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess
files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
Now assuming your local network subnet uses the address range 192.168.0.?
This will tell Apache that it is allowed to be accessed from any ip address on that subnet. Of
course you will need to check that your router is set to use the 192.168.0 range.
This is simply done by entering this command from a command window ipconfig and
looking at the line labeled IPv4 Address. you then use the first 3 sections of the address you
see in there.
Of course if you are using Apache 2.4 the syntax for this has changed.
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
Require local
Require ip 192.168.0
You should not just add this into httpd.conf it must be a replace.
Instead, leave the server OFFLINE as this funtionality is defunct and no longer works, which is
why the Online/Offline menu has become optional and turned off by default.
just like the one that has always existsed that edits your httpd.conf file.
It should look like this if you have not added any of your own Virtual Hosts
#
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
If you want to allow access from anywhere replace Require local with
If you want to be more specific and secure and only allow ip addresses within your subnet
add access rights like this to allow any PC in your subnet
Require local
Require ip 192.168.1
Require local
Require ip 192.168.1.100
Require ip 192.168.1.101