Hi JIm,
I copied it all. I take it from your comment, remove it and just add the ScriptAlias. I will try that right now.
After removing everything except ScriptAlias statements, got 400 error. Tried a few combinations but most produce basically the same error. With the following <VirtualHost> config still can't get login to work:
<VirtualHost 69.90.68.25:443>
ServerAdmin WebMaster@domain.com
ServerName w2.domain.com
ScriptAlias /quote/ /usr/local/www/data/domain.com/quote/
ScriptAlias /check/ /usr/local/www/data/domain.com/check/
ScriptAlias /client/ /usr/local/www/data/domain.com/client/
DocumentRoot /usr/local/www/data/domain.com/
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/etc/apache22/certs/domain.com/w2/server.crt
SSLCertificateKeyFile /usr/local/etc/apache22/certs/domain.com/w2/server.key
# <Files ~ "\.(cgi|shtml|phtml|php3?)$">
# SSLOptions +StdEnvVars
# </Files>
# <Directory "/usr/local/www/cgi-bin">
# SSLOptions +StdEnvVars
# </Directory>
# SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
<Directory /usr/local/www/data/domain.com>
BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
Options FollowSymlinks Includes ExecCGI
AllowOverride All
AddHandler cgi-script .cgi
ExpiresActive On
ExpiresByType text/css "now plus 1 hour"
ExpiresByType application/javascript "now plus 1 hour"
ExpiresByType image/jpeg "now plus 1 week"
ExpiresByType image/gif "now plus 1 week"
ExpiresByType image/x-icon "now plus 1 week"
Order Allow,Deny
Allow from all
# compress
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/js
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
# Customer login functionality
AuthType Digest
AuthName "Domain"
AuthDigestDomain /
AuthDigestProvider dbd
AuthDBDUserRealmQuery "select md5(email || ':Domain:' || password) from client where email = %s and 'Domain' = %s"
# below is the REST based HTTP authentication stuff
Include /usr/local/www/data/domain.com/quote/optional-login.conf
</Directory>
</VirtualHost>
ErrorLog shows:
[Tue May 25 22:41:19 2010] [error] (20014)Internal error: DBD: failed to prepare SQL statements:
[Tue May 25 22:41:19 2010] [error] (20014)Internal error: DBD: failed to initialise
[Tue May 25 22:41:19 2010] [error] [client x.x.x.x] Failed to acquire database connection to look up user 'user@some.domain.com:Domain', referer: [
w2.domain.com...]