Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-08-2011, 07:56 PM   #31
Nominal Animal
Senior Member
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948

Originally Posted by hua View Post
How can help .htacces here to us? Is it a different way of solving this access limitations (permissions) issue on web files and directories?
What can be a drawback of specifying access rights with this instead of the other way?
You can restrict which settings you can change in .htaccess files via the AllowOverride directive. Even then, there are certain options that you cannot set in .htaccess files at all, for example SuexecUserGroup.

There is a very small performance "penalty" in using .htaccess files, compared to Apache configuration files proper, since Apache parses the .htaccess file every time. The "penalty" is usually insignificant, especially if you're using scripting languages.

On the plus side, modifications to the .htaccess files are immediately effective, whereas changes to the Apache configuration proper requires the admin to specifically tell Apache to reload the configuration.

I personally use both, depending on the situation.
Click here to see the post LQ members have rated as the most helpful post in this thread.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Using /var/www vs. /srv vs. /home/user/public_html NightSky Linux - Server 11 09-06-2010 12:30 AM
Configure /var/www/html for user write access? SlowCoder Linux - Server 9 07-26-2009 05:37 PM
Changing user and group for Apache 2 & /var/www RDReavis Debian 4 04-06-2009 04:32 AM
FTP user writing to /var/www animelook Linux - General 1 08-04-2006 07:38 PM
user/group permissions for /var/www/html/ illtbagu Linux - Software 6 11-12-2003 05:29 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration