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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 13th, 2001, 12:16 PM
Modassir Modassir is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Dallas, TX
Posts: 11 Modassir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have installed apache 1.3.12-25 web server on my Linux machine. The installation is fine and users can browse the page .The only problem i have is the Login authentication. I want if someone type the web page URL, he get the Login ID and password window before getting web page. I tried a lot to configure the httpd.conf, ( which is the configuration file of apache server) and did everything that was explained in the file. I created the "htpasswd" file and and ".htaccess" file which has appropriate configuration with user name and passwords.

I couldn't understand what i am missing to configure this web server so that it ask LoginID and password before opening web page. I will appreciate if someone can advise me.

Thanks & regards

Modassir

mabbasi@milestone.cc

Reply With Quote
  #2  
Old April 14th, 2001, 01:13 AM
oskar oskar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Copenhagen, DK
Posts: 222 oskar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 40 sec
Reputation Power: 8
Send a message via ICQ to oskar
In your conf you need this:

-----------------------------------
AllowOverride AuthConfig
-----------------------------------

"AuthConfig" could also be "All"
And you need to tell the server what the file name is:

-----------------------------------
AccessFileName .htaccess
-----------------------------------

Then in the directory you want protected, you must have a .htacces file, looking like:

------------------------------------
AuthName "This is the title for loginprompt"
AuthType Basic
AuthUserFile c:/apache/htdocs/passwords/login

require valid-user
------------------------------------

As you can see, I write the exact path to the userfile created with htpasswd, otherwise it will not work for me (win32)

And a link, where I learned to set up apache to protect directories:

http://www.apacheweek.com/features/userauth

Hope it now will work for you
Steffen

Reply With Quote
  #3  
Old April 14th, 2001, 08:14 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> Then in the directory you want protected, you must have a .htacces file

It's not a must, you don't even need to enable htaccess at all, you can configure that within httpd.conf itself.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache server Login Authentication


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


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





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