logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



simple question

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
strigoi



Joined: 15 Dec 2005
Posts: 36

PostPosted: Fri 10 Mar '06 8:13    Post subject: simple question Reply with quote

i would like to set apache to be unable to serve a DB backup file, .sql, what would i need to add in the httpd.config to do so, i run my website at home, and of course, have full access to the webserver for manual backups, thnx in advance.

i do have mod security installed, and the rotate mod logs, just in case that means anything

strigoi
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Mar '06 11:40    Post subject: Reply with quote

Code:

IndexIgnore *.sql

<FilesMatch "\.(sql)$">
deny from all
</FilesMatch>

Back to top
strigoi



Joined: 15 Dec 2005
Posts: 36

PostPosted: Fri 10 Mar '06 22:30    Post subject: question Reply with quote

ok, ive added the text posted ( thnx for the reply ) but im still able to get a DB backup ( .sql ) through the phpbb forums, perhaps i didnt add it in the right place in the httpd.config, ive added it immediately after the mod security

Code:
</IfModule>




Code:

IndexIgnore *.sql

<FilesMatch "\.(sql)$">
deny from all
</FilesMatch>


any suggestions would really be helpfull, thnx again
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2581
Location: Hilversum, NL, EU

PostPosted: Fri 10 Mar '06 23:37    Post subject: Reply with quote

Try:

<FilesMatch "^\.sql">
Order allow,deny
Deny from all
</FilesMatch>


Steffen
Back to top
strigoi



Joined: 15 Dec 2005
Posts: 36

PostPosted: Sat 11 Mar '06 20:01    Post subject: question Reply with quote

ok steffan, i have added what you posted, do i need to reboot the server ? or just stop and restart the apache service ?


im still able to get a .sql backup, phpbb_db_backup.sql is the complete file name.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Sat 11 Mar '06 20:03    Post subject: Reply with quote

only restart the apache
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1