|
|
Choosing A Webhost: |
Issue uploading files via http with Apache2, php 4.3.4, and mod_security.: msg#00017apache.mod-security.user
I'm running on FreeBSD 4.9 STABLE, I installed Apache 2.0.48, PHP 4.3.4, and mod_security 1.7.3 from the ports. I added the following to my httpd.conf file to enable mod_security LoadModule security_module libexec/apache2/mod_security.so <IfModule mod_security.c> # Turn the filtering engine On or Off SecFilterEngine On # Make sure that URL encoding is valid SecFilterCheckURLEncoding On # Unicode encoding check SecFilterCheckUnicodeEncoding Off # Only allow bytes from this range SecFilterForceByteRange 0 255 # Only log suspicious requests SecAuditEngine RelevantOnly # The name of the audit log file SecAuditLog /var/log/httpd-audit.log # Debug level set to a minimum SecFilterDebugLog /var/log/httpd-modsec_debug.log SecFilterDebugLevel 0 # Should mod_security inspect POST payloads SecFilterScanPOST On # By default log and deny suspicious requests # with HTTP status 500 SecFilterDefaultAction "deny,log,status:500" </IfModule> SecFilter DynamicOnly SecFilterSelective REMOTE_ADDR "^xx.xx.xx.xx$" nolog,allow SecFilter "drop[[:space:]]table" SecFilterSelective COOKIE_sessionid "!^(|[0-9]{1,9})$" When using a php script to upload files via http I get 64% of the file and then it finishs as if successful, however the file is corrupt and will not display correctly, the file size is 64% of the original size. When I disable mod_security in my httpd.conf file everything works fine. If you would like to see my log files or the php script please let me know. Regards, Kevin ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Restriction to / dir, Tkachenko Alexei |
|---|---|
| Next by Date: | Re: Issue uploading files via http with Apache2, php 4.3.4, and mod_security., Ivan Ristic |
| Previous by Thread: | Restriction to / dir, Tkachenko Alexei [AlexAT] |
| Next by Thread: | Re: Issue uploading files via http with Apache2, php 4.3.4, and mod_security., Ivan Ristic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |