Basic Authentication with FastCGI

Home Forums BulletProof Security Free Basic Authentication with FastCGI

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #38395
    happyday
    Participant

    Hello,

    I need to modify my .htaccess file to include some code that helps with a Basic Authentication plugin for servers running PHP with FastCGI. Here is the code I need to include:

    #METALOCATOR: This line added to allow basic authentication under FastCGI
    SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
    
    #METALOCATOR: Turn on the re-write engine.  This should only be included once.
    RewriteEngine on
    
    #METALOCATOR: This line added to allow basic authentication under FastCGI
    #METALOCATOR: Establishes an environment variable used by the plugin only for URLs beginning with wp-json/
    RewriteRule ^wp-json/.* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

    In which BulletProof custom code field should I put this? Thank you.

    #38396
    AITpro Admin
    Keymaster

    1. Add your WP JSON Basic Auth with FastCGI htaccess code in this BPS Root Custom Code text box:  1. CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE.  Note: It can go above or below any htaccess code that is already in this Custom Code text box.
    2. Click the Save Root Custom Code button.
    3. Go to the Security Modes page and click the Root Folder BulletProof Mode Activate button.

    #38406
    happyday
    Participant

    Perfect, thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.