LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2014, 07:24 PM   #1
ElyP
LQ Newbie
 
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
apache <DirectoryMatch> not working


Running httpd-2.2.3-91.el5 on RHEL 5.

Apache is running several websites and subversion is in use for version control.

I am trying to ensure that subversion metadata is not being exposed by going to http://host/.svn/entries where host is an IP/domain name of one of our websites.

To that end, I have put the following at the end of the main Apache configuration file /etc/httpd/conf/httpd.conf:
<DirectoryMatch "\.svn">
Deny From All
</DirectoryMatch>

And then restarted apache by running "sudo httpd –k restart" to have the change take effect.

However, this is not working. I can still access http://[host]/.svn/entries files on this server by browsing to it with a web browser. This change worked on my other servers so I'm not sure what's going on.

As stated earlier I edited the main configuration file which is /etc/httpd/conf/httpd.conf, as verified by running httpd -V and seeing the following output:
-D HTTPD_ROOT="/etc/httpd"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

That file includes several other httpd.conf files for the various websites on the server. I did not change any settings in those files. But it doesn't seem like I should have to because I have two other servers setup the same way, and making this change worked on them.

Does anyone have any ideas of why this is not working or what I could be missing?
 
Old 10-24-2014, 08:42 AM   #2
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
Hi

if you don't want to list folder content in Apache you can use

-Indexes in Directory options
 
  


Reply



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
Apache Internal Server Redirection vhost => vhost not working [Debian & Apache 2] Smokin... Linux - Server 1 05-26-2013 12:06 PM
[SOLVED] linux(in VirtualBox) apache http://localhost working, but 127.0.0.1 not working zousheng Linux - Newbie 12 02-09-2013 06:21 PM
Load Balancing - ipvsadm with apache (mod_proxy) to another apache not working romeo_tango Linux - Server 1 01-12-2012 03:21 AM
Had apache working, then set up vsftpd, now apache is refusing my connections beetle_boy66 Linux - Newbie 4 01-25-2006 08:57 PM
can't get SSLl working on Apache. Apache won't start bentman78 Linux - Software 1 08-10-2003 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration