<VirtualHost *:80> DBDriver mysql #DBDParams host=localhost,dbname=myDB,user=root,password=***** DBDParams "dbname=myDB user=root password=*****" #DBDParams host=localhost,dbname=myDB,user=root,password=*****,sock=/var/lib/mysql/mysql.sock #DBDParams "host=127.0.0.1 port=3306 dbname=myDB user=root password=***** sock=/var/lib/mysql/mysql.sock" DBDMin 4 DBDKeep 8 DBDMax 20 DBDExptime 300 <Directory "/path/to/Dir"> AuthDBDUserPWQuery "SELECT user_passwd FROM myTable WHERE user_name = %s" #AuthDBDUserPWQuery "SELECT encrypt(user_passwd) AS password FROM myTable WHERE user_name = %s" #<RequireAll> AuthType Basic AuthName "site" Require valid-user AuthBasicProvider socache dbd # </RequireAll> </Directory> ServerName www.mySite.com ServerAlias mySite.com DocumentRoot /Path/to/Dir ErrorLog /myPath/error.log CustomLog /myPath/requests.log combined </VirtualHost>
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: