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.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL 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.