PHP doesn't work under SSL for Apache
| From: | Bryan Waters | Date: | Fri, 28 May 2004 14:27:37 +0000 |
| Subject: | PHP doesn't work under SSL for Apache | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-13576@lists.php.net to get a copy of this message | ||
I have an Apache 1.3.27 server configured with SSL, PHP and so on...
My problem is that PHP doesn't work under the SSL virtual host...it works
under other named virtual hosts and the main site, but it simply doesn't
work under the _default_:443 virtualhost for some reason...on any other
non-ssl page on the site, php works...(my virtualhost config is below...)
but under SLL i can get html but not php pages to return...
What am i missing? If i didn't include enough information, my
apologies...it seemed overkill to include the entire conf file.
thx
-bryanw
<VirtualHost _default_:443>
DocumentRoot "/home/mydomain/html"
ServerName secure.mydomain.com
ServerAdmin bryanw@mydomain.com
ErrorLog /usr/local/apache/logs/error_Log
TransferLog /usr/local/apache/logs/access_log
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/apache/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>