Thursday, February 12, 2015

[Quick Tips]: How to configure and use .htaccess with apache

How to configure and use .htaccess with apache

How to use .htaccess with apache and Create the .htpasswd file externally from your web root ideally in your home directory. First of all, produce the username and password and copy it to the .htpasswd file.Securing Web portal using .htaccess any service. Now we can start with how to use .htaccess with apache.Now we start How to configure and use .htaccess with apache
htaccess1
.htaccess rules for the apc directory – change the AuthUserFile and require user name accordingly.
htaccess2
Put up the following lines to the apache config file to allow .htaccess quash for the apc directory:
htaccess1
Make sure that your apache configuration file has the following given line – if it is not there then please add it to make it work correctly.
htaccess1
Restart Apache one final time.
htaccess1
Now go to http://127.0.0.1/apc/apc.php, here it will ask you for a password.
APC Internal Authentication
The apc.php file has credentials to access user cache entries for which it is necessary to disable the same and give value zero if it is already not given.
htaccess1

No comments: