|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Do you know how to set up a password control for a website directory on Linux/apache server? I know should use .htaccess file and access.conf file.
1) I''ve set up directory data in access.conf like this: <Directory "/export/home/harley/public_html"> AllowOverride None Options None #Options All Multiviews #AllowOverride AuthConfig #Order allow,deny #Allow from all </Directory> 2) And I made a .htaccess file like this: AuthName Harley AuthType Basic AuthUserFile /home/harley/harley.passwd require valid-user What else work should I do to make the directory under password control? E-mail me: goodgoodtom@yahoo.com |
|
#2
|
|||
|
|||
|
Start here -> http://www.apache.org/docs/mod/core.html#allowoverride
>>AuthUserFile /home/harley/harley.passwd Make sure your harley.passwd is world-readable (644). |
|
#3
|
|||
|
|||
|
Why it still doesn't work after I set up a world-readable harley.passwd file for the directory?
When I access the http://***.***.***/~harley/secret/love.html webpage, there is no password control, do you know why? |
|
#4
|
|||
|
|||
|
I told you to read http://www.apache.org/docs/mod/core.html#allowoverride , have you done so yet?
>>there is no password control, do you know why? Because your <Directory> block tells apache not to read .htaccess file at all. |
|
#5
|
|||
|
|||
|
Thanks, I am working on it.
By the way, do you know how to access MySQL database with Python through web? Hope to get your assistance as I am doing a study project about it. |
|
#6
|
|||
|
|||
|
>>do you know how to access MySQL database with Python through web?
Don't know Python but you can try here -> http://dustman.net/andy/python/MySQLdb/ |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > How to set up a password control for apache? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|