Sunday, January 20, 2013
nginx ossec location directive
location ^~ /ossec/(.*\.php)$ {
auth_basic "Restricted";
auth_basic_user_file /var/www/default/ossec/.htpasswd;
root /var/www/default/ossec;
index index.php;
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/default/ossec$fastcgi_script_name;
include fastcgi_params;
}
#
location ~ \.php$ {
root /var/www/default;
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/default$fastcgi_script_name;
include fastcgi_params;
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment