|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
>> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Apache server Login Authentication |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|