Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: simple question |
|
Author |
|
strigoi
Joined: 15 Dec 2005 Posts: 36
|
Posted: Fri 10 Mar '06 8:13 Post subject: simple question |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 10 Mar '06 11:40 Post subject: |
|
|
Code: |
IndexIgnore *.sql
<FilesMatch "\.(sql)$">
deny from all
</FilesMatch>
|
|
|
Back to top |
|
strigoi
Joined: 15 Dec 2005 Posts: 36
|
Posted: Fri 10 Mar '06 22:30 Post subject: question |
|
|
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: |
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: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 10 Mar '06 23:37 Post subject: |
|
|
Try:
<FilesMatch "^\.sql">
Order allow,deny
Deny from all
</FilesMatch>
Steffen |
|
Back to top |
|
strigoi
Joined: 15 Dec 2005 Posts: 36
|
Posted: Sat 11 Mar '06 20:01 Post subject: question |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 11 Mar '06 20:03 Post subject: |
|
|
only restart the apache |
|
Back to top |
|
|
|
|
|
|