Re: RE: PHP doesn't work under SSL for Apache
| From: | John Nichel | Date: | Fri, 28 May 2004 17:00:55 +0000 |
| Subject: | Re: RE: PHP doesn't work under SSL for Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187148@lists.php.net to get a copy of this message | ||
Bryan Waters wrote:
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>Not sure if this is it, but you may try adding these lines to you secure virtual, and restarting Apache.... AddType application/x-httpd-php .php -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.comDocumentRoot "/home/mydomain/html" ServerName secure.mydomain.com ServerAdmin bryanw@mydomain.com ErrorLog /usr/local/apache/logs/error_Log TransferLog /usr/local/apache/logs/access_logSSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULLSSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crtSSLCertificateKeyFile /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.0CustomLog /usr/local/apache/logs/ssl_request_log \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"</VirtualHost>