FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

.htaccess .htpasswd

 


solarwind
Hi, i need to use a .htaccess and .htpasswd file on this server. But to do that, the .htaccess requires you to provide the actual server path to the .htpasswd file. Lets say that both of the files are in an accounts base directory. What will the actual server path be? And does this site even support or allow .htaccess and .htpasswd files?

P.S

I dont even know if this is the right place to post this question. But I oculd not find any other.

I would appreciate any responses.

Thankyou
mathiaus
Correct place. Web hosting support would be ok but either is good.

First of Frihost supposrts both files. Secondly this is what you do

In the folder where you are wanting to secure enter
Code:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/USERNAME/.htpasswds/PATH/passwd"
require valid-user

replace USERNAME with your CPanel/DirectAdmin username you have.
replace PATH with the folder name from the public_html folder but dont include the public_html folder!

You cant create the passwd file yourself as the password is encryped somehow.

If your on frihost and using |Direct Admin you could just use the directory protect feature
http://www.site-helper.com/misc.html#password
solarwind
thanks for the response! it works!
Related topics

CANT UPLOAD .htaccess, .htpasswd, .header, .footer
using PHP $_SERVER commands for phpbb login
how do i make a login page
htaccess + htpasswd
protecting a file with htaccess

.htaccess chez frihost : obligation de crypter le pass ?
htaccess
.htaccess file
General .htaccess tutorial.
.htaccess??

htaccess Password Protection
.htaccess tutorial
[tutor] How to protect images without htaccess using PHP
.htaccess IP Blocking
Custom error pages using .htaccess
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.