I'm getting the following typical error:
You don't have permission to access / on this server on enable
I couldn't solve the problem with the typical answers. The website that I'm trying to access is throwing me the above message.
I found a "solution" and is comment the following lines
#<Directory />
# Options None
# Order deny,allow
# AllowOverride None
# Allow from all
#</Directory>
I said "solution" because yesterday works great with those lines. After making a pull in my server to renew some files from my Laravel project I'm starting to get that message.
Also, if I comment those lineas I have to comment "-FollowSymLinks" from my document root:
<Directory "/var/www/html">
# Options -FollowSymLinks
Options -indexes -ExecCGI -Includes
AllowOverride None
Order allow,deny
Allow from all
<LimitExcept GET POST HEAD>
deny from all
</LimitExcept>
</Directory>
I don't know what's going on with my Centos 6.8 server (Apache 2.2 version).
To sum up, this is my virtualhost where my laravel project run:
<VirtualHost *:80>
ServerAdmin myhosting@gmail.com
ServerName www.myhosting.com
DocumentRoot /var/www/html/myhosting.com/public
ServerAlias myhosting.com
Redirect permanent / http://ift.tt/2l6IvQi
ErrorLog /var/www/html/http://ift.tt/2m954Bw
CustomLog /var/www/html/http://ift.tt/2l6YAFN common
</VirtualHost>
<VirtualHost myhosting.com:443>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/http://ift.tt/2m9qjmR
SSLCertificateKeyFile /etc/letsencrypt/live/http://ift.tt/2l6HBDF
SSLCertificateChainFile /etc/letsencrypt/live/http://ift.tt/2m986FV
<Directory /var/www/html/http://ift.tt/2l6IcVR;
LimitRequestBody 5242880
AllowOverride All
Allow from all
<LimitExcept GET POST HEAD>
deny from all
</LimitExcept>
Thanks for helping!
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2m94cwS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire