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

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

in localhost everything works

Options: ReplyQuote
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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
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>

Options: ReplyQuote
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.

Options: ReplyQuote
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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
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

Options: ReplyQuote
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>

Options: ReplyQuote
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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.