473,416 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

.htaccess enabled or disabled

254 100+
I have checked this info from apache website, and i confused with it.

Procteing System files

it said:
Expand|Select|Wrap|Line Numbers
  1. To run a really tight ship, you'll want to stop users from setting up .htaccess files which can override security features you've configured. Here's one way to do it.
  2.  
  3. In the server configuration file, put
  4.  
  5.     <Directory />
  6.     AllowOverride None
  7.     </Directory>
  8.  
  9. This prevents the use of .htaccess files in all directories apart from those specifically enabled.
  10.  
In the same time i have this ALSO in the server main configuration:
Expand|Select|Wrap|Line Numbers
  1. <Directory /home/user/directory>
  2. AllowOverride All
  3. </Directory>
  4.  
So, if i have a .htaccess in Directory called /home/user/directory/member/.htaccess , the server wont read this .htaccess file?[color=red] True or False ?[/color]

the .htaccess :
Expand|Select|Wrap|Line Numbers
  1. AllowOverride AuthConfig
  2. AuthUserFile /export/home/student/w0050853/CSC2406/html/ass2/members/.htpasswd
  3. AuthName "Password Required"
  4. AuthType Basic
  5. Require user user1
  6.  
Jan 13 '07 #1
1 4864
sashi
1,754 Expert 1GB
I have checked this info from apache website, and i confused with it.

Procteing System files

it said:
Expand|Select|Wrap|Line Numbers
  1. To run a really tight ship, you'll want to stop users from setting up .htaccess files which can override security features you've configured. Here's one way to do it.
  2.  
  3. In the server configuration file, put
  4.  
  5.     <Directory />
  6.     AllowOverride None
  7.     </Directory>
  8.  
  9. This prevents the use of .htaccess files in all directories apart from those specifically enabled.
  10.  
In the same time i have this ALSO in the server main configuration:
Expand|Select|Wrap|Line Numbers
  1. <Directory /home/user/directory>
  2. AllowOverride All
  3. </Directory>
  4.  
So, if i have a .htaccess in Directory called /home/user/directory/member/.htaccess , the server wont read this .htaccess file?[color=red] True or False ?[/color]

the .htaccess :
Expand|Select|Wrap|Line Numbers
  1. AllowOverride AuthConfig
  2. AuthUserFile /export/home/student/w0050853/CSC2406/html/ass2/members/.htpasswd
  3. AuthName "Password Required"
  4. AuthType Basic
  5. Require user user1
  6.  
Hi there,

Place the .htpassword file outside your web root, also specify the extact path of the .htpassword file in your .htaccess, hope it helps. Good luck & Take care.
Jan 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with...
4
by: Colleyville Alan | last post by:
I have 2 command buttons on a form. I want the first one to be enabled and the second one to be disabled when the form is opened. That works fine. Then, after the user has pressed the first...
3
by: dave | last post by:
How do I programatically determine the enabled or disabled status of AD accounts? I have queried the userAccountControl key, but all I get back is an int, and it seems to be the same for enabled...
5
by: Leo J. Hart IV | last post by:
Hello, I'm hoping someone can help me out. I was wondering if the Enabled property of a CheckBox or RadioButton server control is stored in the ViewState. If not, is there some way to to add...
1
by: Mateo | last post by:
Hi, is there a way to display a disabled radiobutton as enabled? (without enabling it of course). In other words, how can I lock a radiobutton without dimming it? My problem is that when the...
4
by: Phill. W | last post by:
Here's a knotty little problem. I have some nasty little controls that needs to behave in a non- windows-Standard way - don't ask why; it's a large application being converted from some older...
2
by: jaanus | last post by:
Here we go... What I have been trying to do is to forward all http requests containing /cms/ to http://cms.mydomain.com/ example1: http://host1.mydomain.com/cms/init.php would be parsed from...
4
by: adnanjunk | last post by:
Hi, Having a little issue with .htaccess not working on windows server. I have clean url's setup using the htaccess file, working fine on linux server. I have researched for a while and found...
2
Markus
by: Markus | last post by:
Why is it not working? I joke. Here's the info: In the folder C:\host\www\test, I have an .htaccess file. Inside that .htaccess file is the following: RewriteEngine On RewriteRule...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.