Hello,
Answers to questions:
Windows version: Windows 10 Version 10.0.18362 Build 18362 x64
2 - Version WampServer: 3.2.0 x64
3 - Apache Version: 2.4.41
4 - PHP Version: 7.3.12
5 - MySQL Version: 8.0.10
5a - MariaDB version: 10.4.10
6 - WampServer icon is green
8 - I have access to localhost under localhost:81 and there are no error messages.
9 - I have access to phpMyAdmin
11- no antivirus, using windows firewall
12 - C:\wamp64\
Here is my httpd-vhosts.conf:
<VirtualHost *:81>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:81>
ServerName testonline
DocumentRoot "c:/wamp64/www/testonline"
<Directory "c:/wamp64/www/testonline/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Note that I have changed my port to 81 to avoid skype conflicts and as a test of my proficiency operating my router's port forwarding settings.
While trying to test setting up an online server, I ran into an issue where I would receive a 403 error when my httpd-vhosts.conf is configured as so and I accessed the site as myip:81/testonline. However, when I change the require line in the localhost section to "Require all granted", I do not have this error and able to access my site in the same manner. I wouldn't like to leave it this way as this gives access to my localhost site. Is there a way to fix this?
Error message:
Forbidden
You don't have permission to access this resource.
Apache/2.4.41 (Win64) PHP/7.3.12 Server at 70.176.41.203 Port 81
Browsing through similar forum topics, it seems that this issue is unique to me which makes me think it may be due to my httpd.conf settings, however I do not know where to look within the file, or what to change. It could also be my own misunderstanding of how to access my site while it is online.
Additionally, while I followed the instructions given in the sticky topic, I am not sure if my virtual host is set up correctly.
Any help would be appreciated.
Thank you!
Answers to questions:
Windows version: Windows 10 Version 10.0.18362 Build 18362 x64
2 - Version WampServer: 3.2.0 x64
3 - Apache Version: 2.4.41
4 - PHP Version: 7.3.12
5 - MySQL Version: 8.0.10
5a - MariaDB version: 10.4.10
6 - WampServer icon is green
8 - I have access to localhost under localhost:81 and there are no error messages.
9 - I have access to phpMyAdmin
11- no antivirus, using windows firewall
12 - C:\wamp64\
Here is my httpd-vhosts.conf:
<VirtualHost *:81>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:81>
ServerName testonline
DocumentRoot "c:/wamp64/www/testonline"
<Directory "c:/wamp64/www/testonline/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Note that I have changed my port to 81 to avoid skype conflicts and as a test of my proficiency operating my router's port forwarding settings.
While trying to test setting up an online server, I ran into an issue where I would receive a 403 error when my httpd-vhosts.conf is configured as so and I accessed the site as myip:81/testonline. However, when I change the require line in the localhost section to "Require all granted", I do not have this error and able to access my site in the same manner. I wouldn't like to leave it this way as this gives access to my localhost site. Is there a way to fix this?
Error message:
Forbidden
You don't have permission to access this resource.
Apache/2.4.41 (Win64) PHP/7.3.12 Server at 70.176.41.203 Port 81
Browsing through similar forum topics, it seems that this issue is unique to me which makes me think it may be due to my httpd.conf settings, however I do not know where to look within the file, or what to change. It could also be my own misunderstanding of how to access my site while it is online.
Additionally, while I followed the instructions given in the sticky topic, I am not sure if my virtual host is set up correctly.
Any help would be appreciated.
Thank you!