Category: Apache

Password protect using htaccess

Password protect using htaccess

Create .htaccess file with following AuthUserFile /home/username/.htpasswd AuthGroupFile /dev/null AuthName “Private Area” AuthType Basic require valid-user create password file : httpasswd -bc /path/to/file username [ to create a new file ] htpasswd /path/to/file username...

Apache Deny access to files or extensions

Apache Deny access to files or extensions

How to forbid visitors to read files from a directory? Forbidding all files: deny from all Allow access from a certain IP address: order allow deny deny from all allow from <your_IP> In this...

Deny Access from an IP

Deny Access from an IP

Change AllowOverride None to AllowOverride All from httpd.conf And then create a file named .htaccess in the folder you want to deny access and put the folowing : order deny,allow deny from all allow...

Load balancing in Apache

Load balancing in Apache

Load balancing in Apache is pretty much simple. You need to have a load balancer, and more than one web server. Required module : mod_proxy_balancer This module is an Apache module available starting Apache...