Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Use of htaccess file with Apache

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
.htaccess file makes 403 - hi folks, i wrote a .htaccess file with the following content: On !-f / ^typo3$ index.php but when accessing this page, a 403..

Can htaccess include another file? - Hi, I want to achieve something like this. Imagine I have a file called which contains a whole bunch of IP addresses which I want to blocked, one per line. Can I do something like this? <Files deny from..

UNIX + Windows htaccess in one file possible? - Hello! I use WAMP for and LAMP for hosting my website. Sometimes I need to certain On the I need to put into my htaccess file to point to the On..

DirectoryIndex, and other commands for the htaccess file??? - I'm on a shared host and I'm new with setting up various for my files. I've created an htaccess file in the root, and I've set up most of my web site files under Inside that htaccess file, I've added..

Excluding a single file from .htaccess password protection? - Hi, I've added .htaccess password to my web site for various reasons. However, I think it would be nice to have a welcome page that's to everyone. Is there any way to exclude a single file (ie, from being
Next:  Apache: logrotate windows problem  
Author Message
user2755

External


Since: Apr 23, 2004
Posts: 8



(Msg. 1) Posted: Wed Jun 16, 2004 8:08 pm
Post subject: Use of htaccess file with Apache
Archived from groups: alt>apache>configuration (more info?)

Suppose I write an "Allow / Deny" rule in a htaccess and it resides in the
root directory. If I write another "Allow / Deny" rule in another htaccess
file in a sub-directory;

1) Would the server still access the htaccess file in root as well as the
sub-directory when that sub directory is accessed?
Therefore...
2) Would I have to duplicate the allow / deny from the root to the sub
directories htaccess as well as the additions I made to the sub-directories
htaccess?

Dariusz

 >> Stay informed about: Use of htaccess file with Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Jun 16, 2004 9:38 pm
Post subject: Re: Use of htaccess file with Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dariusz <ng DeleteThis @lycaus.plusyourshit.com> wrote:
 > 1) Would the server still access the htaccess file in root as well as the
 > sub-directory when that sub directory is accessed?

Yes, usually the root one has priority over any other rule.

 > 2) Would I have to duplicate the allow / deny from the root to the sub
 > directories htaccess as well as the additions I made to the sub-directories
 > htaccess?

If you allow all/deny someone in root the denied won't be allowed
to access anything on the site, so this has some sense only if you
deny someone in subdirs and allow them in the root/parents.

Davide

--
| It is by the fortune of God that, in this country, we have three
| benefits: freedom of speech, freedom of thought, and the wisdom never
| to use either.
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Use of htaccess file with Apache 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]