Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTPS and 500 Internal Server Error

Tags:

php

https

ssl

I Just installed SSL on my server, I can access to all my folder with and without https.

Now, I put a php file on a folder. I can access to it without https, but when I want to open a secure connexion with httpS I have : 500 Internal Server Error. Only if the content of this folder is a php project, if not (e.g.: html project) it will open very well with https

I have any .htaccess on this folder.

How can I fix that?

Thanks in advance.

like image 299
TheCyberXP Avatar asked Nov 25 '22 08:11

TheCyberXP


1 Answers

This sounds like the Virtual Host directive within the httpd-ssl.conf isn't properly configured to handle PHP files. My guess would be a user/permission issue or the lack of a handler directive that would tell Apache how to handle .php files.

Regards

like image 88
aefxx Avatar answered Dec 09 '22 21:12

aefxx