asked on
ASKER
<VirtualHost *:80>
ServerAdmin support@xxx.com
DocumentRoot /var/www/vhosts/somehost/html
ServerName somedomain.com
ErrorLog /var/www/vhosts/somehost/logs/error_log
CustomLog /var/www/vhosts/somehost/logs/access_log combined
# <Directory /var/www/vhosts/somehost/html>
# AllowOverride AuthConfig
# </Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/var/www/vhosts/somehost/html"
ServerName somedomain.com:443
ErrorLog /var/www/vhosts/somehost/logs/ssl_error_log
TransferLog /var/www/vhosts/somehost/logs/ssl_access_log
LogLevel warn
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/pki/tls/certs/somehost.crt
SSLCertificateKeyFile /etc/pki/tls/private/somehost.key
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# <Directory /var/www/vhosts/somehost/html>
# AllowOverride AuthConfig
# </Directory>
</VirtualHost>
AuthBasicAuthoritative Off
AuthUserFile /dev/null
AuthMySQL On
AuthName "Authentication required"
AuthType Basic
Auth_MySQL_Host localhost
Auth_MySQL_User someuser
Auth_MySQL_Password somepass
AuthMySQL_DB somedb
AuthMySQL_Password_Table htaccess
Auth_MySQL_Username_Field username
Auth_MySQL_Password_Field password
Auth_MySQL_Empty_Passwords Off
Auth_MySQL_Encryption_Types PHP_MD5
Auth_MySQL_Authoritative On
require valid-user
ASKER
MySQL is an open source, relational database management system that runs as a server providing multi-user access to a number of databases. Acquired by Oracle in 2009, it is frequently used in combination with PHP installations, powering most of the WordPress installations.
TRUSTED BY
@projects: Can you post the httpd.conf and .htaccess file you are attempting to use with mod_auth_mysql? Just the relevant <VirtualHost> container from httpd.conf will be fine, and feel free to anonymize any sensitive information.