New site resulting as forbidden
Posted by: schwim (66.119.108.---)
Date: November 26, 2018 03:55PM

Hi there everyone!

I created a vhost and modified the vhosts file to add the alias and admin but after restarting the DNS, it results in a 403 forbidden locally and a non-connectable remotely.

I can access both localhost and localhost/phpmyadmin. It's my additional entry that's not working.

Here's my vhosts:

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


#
<VirtualHost *:80>
ServerAdmin its@schw.im
ServerName 3amigos.org
ServerAlias www.3amigos.org
DocumentRoot "c:/www/3amigos"
<Directory "c:/www/3amigos/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
</Directory>
</VirtualHost>




Thanks for your time!



Edited 2 time(s). Last edit at 11/26/2018 07:39PM by schwim.

Options: ReplyQuote
Re: New site resulting as forbidden
Posted by: RiggsFolly (Moderator)
Date: November 27, 2018 09:48AM

Hi,

It looks like you removed the `Require` parameter from the new VH

If you want this site visible to all the internet then you need

    Require all granted

---------------------------------------------------------------------------------------------
(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


Sorry, only registered users may post in this forum.