I just installed ssl on my apache/centos server.
Php works fine over the regular http connection but when I try to reach php files over the https connection for some reason they do not get parsed and delivered directly as text files.
Below is the virtualhost section from my ssl.conf. I'm thinking this is where the problem should be since php does not work only over https.
<VirtualHost 126.96.36.199:443> # General setup for the virtual host, inherited from global configuration DocumentRoot "/var/www/vhosts/default/httpsdocs" ServerName www.testserver.com:443 AddType application/x-httpd-php .php AddHandler php5-script .php AddType text/html .php # Use separate log files for the SSL virtual host; note that LogLevel # is not inherited from httpd.conf. ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on
Let me know if you have any ideas.