Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: gasya (---.com.ua)
Date: December 21, 2015 06:55PM

Hello!
I Use latest version of WAMP64 3.0.1 on windows server2012R2 64 and have that issue - how fix it? When I try to access site from internet I have error:Forbidden You don't have permission to access / on this server.

Apache: 2.4.17
PHP:5.6.16
MySQL:5.7.9

Icon is green in yellow cube.



Edited 2 time(s). Last edit at 12/21/2015 07:32PM by gasya.

Options: ReplyQuote
Re: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: RiggsFolly (---.as43234.net)
Date: December 22, 2015 01:12AM

Hi

The simple answer is :-

Use the wampmanager icon and its menus

wampmanager -> Put Online

---------------------------------------------------------------------------------------------
(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: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: gasya (---.189.57.37.triolan.net)
Date: December 23, 2015 09:20PM

RiggsFolly Wrote:
-------------------------------------------------------
> Hi
>
> The simple answer is :-
>
> Use the wampmanager icon and its menus
>
> wampmanager -> Put Online


wampmanager -> Put Online
Did not helped.

Options: ReplyQuote
Re: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: RiggsFolly (---.as43234.net)
Date: December 23, 2015 09:21PM

Do you have any Virtual Hosts defined?

---------------------------------------------------------------------------------------------
(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: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: gasya (---.com.ua)
Date: January 13, 2016 10:44AM

yes, I have virtual host.

Options: ReplyQuote
Re: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 13, 2016 11:50AM

When you have Virtual Hosts the `Put Online` no longer really works

You instead have to manually amend the specific VH that you want to put online.


If this does not make sense then post the Virtual Host definition that you want to put online, and I will suggest an amendment.

---------------------------------------------------------------------------------------------
(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: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: webiarch (---.static.youbroadband.in)
Date: August 09, 2016 06:08PM

Hello,

Problem : Site accesible from localhost only even if WAMP is set to be ONLINE

Solution : after lots of effort i found the solution is

You found in your directory

C:\wamp\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf

file and open in notepad and

Just change it

Require localhost \\ old file you find
to
Require all granted \\ change this code ....

Thank you...

Options: ReplyQuote
Re: Site accesible from localhost only even if WAMP is set to be ONLINE
Posted by: Otomatic (Moderator)
Date: August 09, 2016 07:09PM

Hi,

There is no line
require localhost
in the original file wamp\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf

The only valid solution, Riggs Folly has already given is to use the VirtualHost: The need for Virtual Host and to amend the specific VirtualHost that you want to put online by replacing:
Require local
by
<RequireAny>
Require local
Require ip (ip you want, like 192.168.0)
Require all granted (Only if you want your site access by all the world)
</RequireAny>

And the solution is on this forum for more than two years.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.