Posted by:
Towers
(---.cust.vodafonedsl.it)
Hello,
I have the same issue, but I'm not able to solve it. I did all the processes listed here and in the "how to" section about virtual hosts, but the directive "Require ip xxx" or "Require all granted" ecc doesn't work.
So as maurice, I only want to reach my web application stored in the 192.168.1.120 pc from other pcs in the LAN.
I created a virtualhost like this:
<VirtualHost *:80>
ServerName GeMag
DocumentRoot "c:/wamp64/www/gemag"
<Directory "c:/wamp64/www/gemag/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
gemag is the name of the web application (is it case sensitive?)
I modified the "Require" form "local" to "all granted", and it doen't work, either if i set it to "ip 192.168.1".
The Wamp icon is green
I the etc/hosts file I added:
127.0.0.1 GeMag
::1 GeMag
In the httpd.conf I read these lines:
Listen 0.0.0.0:80
Listen [::0]:80
are those right?
Then in the Directory section I have
<Directory "${INSTALL_DIR}/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
# [
httpd.apache.org]
# for more information.
#
Options +Indexes +FollowSymLinks +Multiviews
#
# 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.
#
# onlineoffline tag - don't remove
Require all granted
</Directory>
I can use the web application on the machine where Wamp is running, but it always says "forbidden" trying to access from another pc in the LAN
I don't know how to solve it... any idea/check/information I'm missing??
Thanks for your help