Check that Apache has permission to see the directories, Apache's user is often www-data (Debian/Ubuntu) or apache (Red Hat, CentOS, Fedora). If you run the command ls -hl /var/www/ you should have a line that looks something that looks like "drwxr-xr-x 2 [user] [group] 4.0K [timestamp] imomo" if you have the letter "r" 3 times in that random string at the start your fine.
Aug 13, 2015
6
Level 2
apache2 and laravel , https problem
hello i have this error in my webpage :
Forbidden
You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at 157.26.83.47 Port 443
in my apache2 log file i have this :
[Thu Aug 13 11:35:25.957495 2015] [access_compat:error] [pid 2842] [client 157.26.100.53:63300] AH01797: client denied by server configuration: /var/www/html/
[Thu Aug 13 11:35:26.037809 2015] [access_compat:error] [pid 2842] [client 157.26.100.53:63300] AH01797: client denied by server configuration: /var/www/html/favicon.ico, referer: https://157.26.83.47/
in my site log file i have this i don't have any things
so my conf file file imomo.conf
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerName 157.26.83.47
DocumentRoot "/var/www/imomo/public"
ErrorLog /var/log/apache2/imomo-error.log
<Directory "/var/www/imomo/public">
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/var/www/imomo/public"
ServerName 157.26.83.47
ErrorLog /var/log/apache2/imomo-error.log
<Directory "/var/www/imomo/public">
AllowOverride all
Require all granted
</Directory>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/crt/vhost1.crt
SSLCertificateKeyFile /etc/apache2/ssl/key/vhost1.key
<Location />
SSLRequireSSL On
SSLVerifyClient optional
SSLVerifyDepth 1
SSLOptions +StdEnvVars +StrictRequire
</Location>
</VirtualHost>
file ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
NameVirtualHost *:80
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
can some one help me to find the problem plz ? my problem is only with https ! the http work well
Please or to participate in this conversation.