Just installed Webserver and getting : Forbidden
Posted by: matrixebiz (205.189.202.---)
Date: July 06, 2017 06:09PM

Hello, sorry if this has be asked before but I just installed the Webserver and copied an index.html file to the www folder, the port 80 checks all pass but still getting this error when I try to access the server remotely;


Forbidden

You don't have permission to access / on this server.
Apache/2.4.23 (Win64) PHP/5.6.25 Server at myservername.com Port 80


Is there something else I have to enable? Thank you

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: RiggsFolly (Moderator)
Date: July 06, 2017 06:16PM

Hi,

1) You should not put anything in the \www\ folder that is where the WAMPManager homepahe lives. Its called index.php

2) Access is controlled by the localhost Virtual Host. Edit by using the menu.

wampmanager ->Apache->httpd-vhost.conf

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: matrixebiz (205.189.202.---)
Date: July 06, 2017 06:33PM

See Below



Edited 1 time(s). Last edit at 07/06/2017 08:01PM by matrixebiz.

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: matrixebiz (205.189.202.---)
Date: July 06, 2017 06:44PM

Put Server Online and restarted services but still getting forbidden from outside my network

Here is my httpd-vhosts.conf;
#
# Virtual Hosts
#

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName Test
DocumentRoot C:/wamp64/www/Test
<Directory "C:/wamp64/www/Test">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#



Edited 5 time(s). Last edit at 07/06/2017 08:11PM by matrixebiz.

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: Otomatic (Moderator)
Date: July 06, 2017 08:41PM

Hi,

A final slash for <Directory directive.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: matrixebiz (205.189.202.---)
Date: July 06, 2017 08:58PM

Sorry, not sure what you mean.

Options: ReplyQuote
Re: Just installed Webserver and getting : Forbidden
Posted by: Otomatic (Moderator)
Date: July 06, 2017 09:13PM

Hi

<Directory "c:/blabla/foo/">
Full path with / at the end.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.