Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2004, 10:46 PM   PM User | #1
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Htaccess problems

Hello Everyone!

Not sure if this is the right place to post if not please move me.

Okay I have a problem with htaccess.
I place the below in a file called - .htaccess
--------
AuthUserFile .htpasswd
AuthGroupFile /dev/null
AuthName "Cigarette Lounge"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>
---------

IT WORKS - BUT
It pertects the whole site!
I placed the htaccess file in a single folder. The thing is I have done this hundreds of times and this has worked. But for some reason it is trying to password protect the whole site ALL FOLDERS.

It does not make any sense. Can someone please help me.

Any suggestions are welcome.
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 01-17-2004, 09:11 PM   PM User | #2
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
if you put your .htaccess file in a folder, it applies what it does to that folder and all sub folders. So if you place it in the root directory it will affect the entire site.

scroots
__________________
Spammers next time you spam me consider the implications:
(1) that you will be persuaded by me(in a legitimate mannor)
(2)It is worthless to you, when i have finished
scroots is offline   Reply With Quote
Old 01-17-2004, 09:27 PM   PM User | #3
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Yea, But thats what is very weird, The .htaccess file is in a folder all its own, the root folder (main folder) does not have any htaccess in it.

Anyways I figured it out, the administrature put like global settings on that folder making it have effect on the entire site. Once we removed that it works perfectly.

Thanks for your relpy scroots
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:32 PM.


Advertisement
Log in to turn off these ads.