Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 13th, 2000, 12:08 AM
harley harley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: HK
Posts: 6 harley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
  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

Reply With Quote
  #2  
Old September 13th, 2000, 01:29 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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).

Reply With Quote
  #3  
Old September 13th, 2000, 07:59 PM
harley harley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: HK
Posts: 6 harley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?


Reply With Quote
  #4  
Old September 13th, 2000, 09:24 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #5  
Old September 14th, 2000, 02:09 AM
harley harley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: HK
Posts: 6 harley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old September 14th, 2000, 03:11 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>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/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to set up a password control for apache?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway