You don't have permission to access /test on this server.
Posted by:
kbloom
(---.nys.biz.rr.com)
Date: June 12, 2018 06:14PM
I am trying to set up a site using WAMPserver.
Windows Version: Windows Server 2016
WAMP version 3.1.3 (32 bit)
Apache version -2.4.33
PHP version - 7.2.4
MySQL version - 5.7.21
The WAMP icon is green
The following lines are in my host file:
127.0.0.1 localhost
::1 localhost
127.0.0.1 sitename
::1 sitename
I do have access to phpMyAdmin
The firewall is not turned on
Wamp is installed here: D:\wamp
Here are my virtual host definitions:
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName sitename
DocumentRoot "d:/wamp/www/sitename"
<Directory "d:/wamp/www/sitename/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
When trying to access localhost from the server, I get the following error: Port used for the VirtualHost is not an Apache Listen port
I am able to access my site fine from the host server, but any other PC on the same network will get the following error message:
Forbidden
You don't have permission to access /sitename on this server.
Apache/2.4.33 (Win32) PHP/7.2.4 Server at XXX.XX.XX.XXX Port 80
Is there any reason (obvious or otherwise) why this site would not be accessible from another machine?
Edited 2 time(s). Last edit at 06/13/2018 09:31PM by kbloom.