LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2009, 11:04 AM   #1
bcrossb
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Rep: Reputation: 0
how do i edit httpd.conf to allow htaccess


hi,
very away from linux for such a long time, i have forgotten where to edit the httpd.conf to use htaccess. i placed the .htaccess in top level of webserer, and made the following change.......
<Directory "/Library/WebServer/Documents">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews -indexes

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

# I changed this to All from None
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

not sure if the is the right place or not. i have also restarted the server to let the changes take place. no effect as of yet.
thanks for any help,
bob
 
Old 03-13-2009, 12:25 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You should only change
AllowOverride All

what is the content of your
.htaccess file?
 
Old 03-15-2009, 08:00 PM   #3
bcrossb
LQ Newbie
 
Registered: Feb 2009
Posts: 4

Original Poster
Rep: Reputation: 0
where do i edit http.conf to allow htaccess

this is the contenst of my .htacces file, placed in the first level of my server directory, i added myself to test if it stopped me. does not seem to. sorry for the delay in response, but have been outa town.

order allow,deny
deny from 222.187.220.162
deny from 222.187.220.
deny from 222.187.
deny from pv.wantsfly.com
deny from 76.88.15.96
allow from all

<Files .htaccess>
order allow,deny
deny from all
</Files>
 
  


Reply


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
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 12:26 PM
web site directory security? .htaccess or httpd.conf Moonman Linux - Software 0 03-03-2006 09:51 PM
Edit httpd.conf lbeetles Linux - Newbie 1 12-20-2005 08:13 AM
need help with httpd.conf about htaccess newlinuxnewbie Linux - General 1 11-08-2005 09:45 PM
Can not edit httpd.conf xtra Linux - Newbie 6 08-12-2004 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 AM.

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