• dugbug

    (@dugbug)


    Hi folks,

    I’ve implemented .htpasswd restrictions for *.php files under my wp-admin, however this broke the flash image uploader. Some time during “crunching” or downloading it simply stops with an “HTTP Error”.

    Note that if I turn authentication off, everything is fine.

    After googling, I have added some rules to the .htaccess under my wp-admin folder as follows, but they did not seem to help:

    #BEGIN
    <Files *.php>
    AuthUserFile /mysitepath/.htpasswd
    AuthName restricted
    AuthType Basic
    require user XXXXX
    </Files>

    <IfModule mod_security2.c>
    <Files async-upload.php>
    SecRuleEngine Off
    SecAuditEngine Off
    </Files>
    </IfModule>

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    #END

    I put both apache 1 and 2 rules in there just trying everything. Im using Apache 2 if it matters.

    Any ideas?

    -d

Viewing 1 replies (of 1 total)
  • Shane G.

    (@shane-g-1)

    Hi,

    Assign 755 recursive permissions to wp-content folder of the blog and add this code in htaccess:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    Now, check with image uploader.

    Thanks,

    Shane G.

Viewing 1 replies (of 1 total)
  • The topic ‘Flash image uploader HTTP Error when using .htpasswd Auth’ is closed to new replies.