I try to make my project "public", so everyone in my LAN can access it.
Currently I can only access my projects via http://localhost/project
or by their virtual host name e.g. http://myVirtualHostName
.
I need the projects to be accessible in my entire LAN, e.g. like this:
http://192.168.1.123/project
or http://192.168.1.123/myVirtualHostName
.
But If I try to access the projects from my own client or from another computer in my LAN, I get 403 Forbidden: You don't have permission to access /projectName/ on this server.
.
EDIT:
I was able to solve the first problem, I can now access links under C:\wamp64\www
thanks to this answer, by changing the following block in C:\wamp64\bin\apache\apche2.4.33\conf\extra\httpd-vhosts.conf
from
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
</Directory>
</VirtualHost>
to
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
...and by restarting apache after it.
Now I can access a project in C:\wamp64\www
like this http:\\192.168.1.123\myProjekt
. But I still don't know how to access a virtual host by using my servers ip address.
If I try http://192.168.1.123/myVhostName
then I get Not Found
The requested URL /myVhostName was not found on this server.
, even though Require all granted
is set for each virtual host
.
I also restarted the DNS-Server.
How can I solve this?
I am using WAMP 3.1.3.