Difference between revisions of "Controlling access to /billing"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 1: Line 1:
BY IP ==
Edit /var/www/html/billing/.htaccess and add following lines to the most bottom of the file:
Edit /var/www/html/billing/.htaccess and add following lines to the most bottom of the file:


Line 19: Line 21:


http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow
http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow
= By Password =
to be continued...

Revision as of 10:54, 30 October 2013

BY IP ==

Edit /var/www/html/billing/.htaccess and add following lines to the most bottom of the file:

Order Deny,Allow
Deny from all
Allow from friends_ip another_friends_ip

You can add multiple ip addresses, hostnames or diapazones.

Now restart apache:

/etc/init.d/httpd restart


info:

http://httpd.apache.org/docs/1.3/howto/htaccess.html

http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow

http://httpd.apache.org/docs/1.3/mod/mod_access.html#allow

By Password

to be continued...