- Photo Gallery
- Chicagoland Good & Cheap Restaurants
- Chicagoland Filipino Food Sources
- Coffee shops near Chicago 'El' Stations
- My salad foodhack
- OmniCode
- Backing up photographs: my way
- Badminton photography: my way...
- How I manage my social life…
- Monte Carlo Simulations for Retirement planning (in Perl)
- What D&D Character Am I?
- Skype Settings with Ubuntu 8.10 Intrepid Ibex
- Laser pointer sniper game
- CTA Text Tracker
- Establishing a Low-cost Web Presence
- Homebrew bike lights
- How to enable remote XWindows on Portable Ubuntu
- Combining mod_security and phpMyAdmin for Ubuntu
- Perl Metromix scraper
- Script to copy Podcast files to USB drive
- Updating ipfilter.dat using wget
- Personal Finance 1
- Personal Finance 2
- Beer I've Tasted
- Sports Selection via Pondex
- My Public Key
- Contact us
Combining mod_security and phpMyAdmin for Ubuntu
1st, I installed mod_security to my existing apache server:
http://blog.bodhizazen.net/linux/how-to-mod_security-ubuntu-904/
2nd, As root
vi /etc/apache2/conf.d/modsecurity/modsecurity_crs_05_customrules.conf
In this file, place the following:
----
<LocationMatch "/phpmyadmin/tbl_change.php">
SecRuleEngine Off
</LocationMatch>
<LocationMatch "/phpmyadmin/sql.php">
SecRuleEngine Off
</LocationMatch>
<LocationMatch "/phpmyadmin/managecontent.php">
SecRuleEngine Off
</LocationMatch>
<LocationMatch "/phpmyadmin/import.php">
SecRuleEngine Off
</LocationMatch>
<LocationMatch "/phpmyadmin/tbl_select.php">
SecRuleEngine Off
</LocationMatch>
<LocationMatch "/phpmyadmin/tbl_replace.php">
SecRuleEngine Off
</LocationMatch>
----
3rd, Restart apache
/etc/init.d/apache2 restart
4th, Test your site
- Wordpress tag:
