How to allow includes, Basic Auth from outside .htaccess

This .htaccess file does the following:

Allow SSI lines 1/2/3

Reauire Authenitcation for all outside except those from a particular IP the rest ..

Options +Includes      
AddType text/html .shtml .html
AddOutputFilter INCLUDES .shtml .html
AuthType Basic
AuthName “Password Required For INGG Monitor”
AuthUserFile /var/www/passwords/password.file
Require valid-user
Order deny,allow
Deny from all
Allow from 323.365.376.398
Satisfy any
Header set Access-Control-Allow-Origin “*”


you need to enable the headers module (mod_Headers)

In Ubuntu :

cd /etc/apache2/mods-enabled/

ln -s ../mods-available/headers.load headers.load 

nJoy 😉


Write a Reply or Comment

Your email address will not be published.