Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

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:
  #1  
Old November 2nd, 2003, 07:42 PM
compulsion compulsion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 5 compulsion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
probs with apache and .htaccess win2k

hey guys, i run nt with apache 2.0.39, with php and mysql, i run a php/mysql message board but i would like to restrict access to the message board via .htaccess files, i have tried, made a .htaccess and .htpasswd file, but if i put the .htaccess file in any of the directoys, i try to access them and i do get asked for a user and pass, however when i enter them it asks me 3 times untill eventully i get an 'authorization required' error, i have set the htacces file up with the following in it.

AuthUserFile "c:/webserver/www/.htpasswd"
AuthName "Chat Realm"
AuthType Basic
require valid-user

however even if i have a .htpasswd file in the folder www it still wont accept me as a user.

in my httpd.conf file is this

<Directory "C:/webserver/www">

Options Indexes FollowSymLinks
Options ExecCGI
Options Includes
AllowOverride all
Order allow,deny
Allow from all

</Directory>
this was standard (without comments) as i used an auto install thing called foxserv.
is there no way i can add the strings and usernames into the httpd.conf coz im sure this isnt gonna work for me, ive tried all diff things, searched, used templates, allsorts, i have tried my best with this but with no joy what soever, i figured you pros might be able to help...

i could settle for a normal webpage with a form login but i would much rather use http auth for this as its pretty much failsafe against hacks.

please any advice would be much appriciated..

regards.
comp.

edit: ive since found i can use htpasswd.exe in the /bin/apache but it just crashes every time, and it says the -c and -n parameters conflict

Last edited by compulsion : November 3rd, 2003 at 05:04 AM.

Reply With Quote
  #2  
Old November 3rd, 2003, 12:41 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Quote:
edit: ive since found i can use htpasswd.exe in the /bin/apache but it just crashes every time, and it says the -c and -n parameters conflict

-c says "create a new password file", -n says "don't use a file but output everything to the screen". Thus they conflict...
Leave out the "-n" you probably don't need it.

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old November 3rd, 2003, 03:01 PM
compulsion compulsion is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 5 compulsion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ive tried both -c and -n and neither of them work, it says they conflict yet im only useing one of the commands

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > probs with apache and .htaccess win2k


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