403 Forbidden
Posted by: pavlodovgoruk (---.27-79-r.retail.telecomitalia.it)
Date: October 17, 2017 12:54PM

I installed wamp 3.1.0 however when I tap the button to load it online i will leave this message below. the modem ports are open, the firewall is off, how do I do so to access my online site from another adsl?

Forbidden

You don't have permission to access /index.php on this server.
Apache/2.4.27 (Win64) PHP/5.6.31 Server at xxx.xxx.xxx.xxx Port 80

Re: 403 Forbidden
Posted by: pavlodovgoruk (---.27-79-r.retail.telecomitalia.it)
Date: October 17, 2017 12:55PM

in localhost everything works

Re: 403 Forbidden
Posted by: Otomatic (Moderator)
Date: October 17, 2017 01:46PM

Hi,

- 1 - READ (and answer) BEFORE YOU ASK A QUESTION

- 2 - You must use VirtualHost : see The need for Virtual Host

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

Re: 403 Forbidden
Posted by: pavlodovgoruk (---.34-79-b.business.telecomitalia.it)
Date: October 17, 2017 03:30PM

thank you for the answer, this is my config httpd-vhosts.conf file, do you give me an example of what I have to change?

# Virtual Hosts
#
<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>

Re: 403 Forbidden
Posted by: pavlodovgoruk (---.34-79-b.business.telecomitalia.it)
Date: October 17, 2017 03:49PM

httpd.conf

This is strictly for nothing, except to put me in a bad mood, to post the content of your httpd.conf file especially since there is nothing to change in this file.

ANSWER THE QUESTIONS and READ the VIRTUALHOST link.



Edited 1 time(s). Last edit at 10/17/2017 03:53PM by Otomatic.

Re: 403 Forbidden
Posted by: Otomatic (Moderator)
Date: October 17, 2017 03:51PM

Hi,

Please answer the questions and read the link to the VirtualHost.

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

Re: 403 Forbidden
Posted by: pavlodovgoruk (---.34-79-b.business.telecomitalia.it)
Date: October 17, 2017 04:12PM

I read, but I can not find any voice telling me how to configure the file to grant access to the site from the outside

Re: 403 Forbidden
Posted by: pavlodovgoruk (---.34-79-b.business.telecomitalia.it)
Date: October 17, 2017 04:39PM

I tried to do this configuration, the denied file access file has disappeared, but if I insert the public ip on another pc, the site remains in infinity without ever opening the page


# Virtual Hosts
#
<VirtualHost *:80>
ServerName xxxx.club
ServerAlias wwwxxxx.club
DocumentRoot "C:/wamp64/www"
<Directory "C:/wamp64/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

Re: 403 Forbidden
Posted by: Otomatic (Moderator)
Date: October 17, 2017 05:05PM

Hi,

> I read, ...
NO.

You read diagonally.
If you had actually read, you would have created your VirtualHost :

---with the GOOD tools.
- > How to create a Virtual Host in WampServer
You have not applied.

--- in a separate folder
-> I am assuming we want to create a definition for a site called project1 that lives in
-> \wamp\www\project1
You have not applied.

Before you want at all costs that it is accessible from the outside, start by doing well and only after you can look at the problem of access.

And you still have not answered the questions READ (and answer) BEFORE YOU ASK A QUESTION

I will be very clear: without answers we will stop there.

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

Sorry, only registered users may post in this forum.