Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
.htsaccess help.
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- .htsaccess help.
.htsaccess help.
21-04-2014 12:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I'm trying to password protect a directory on my website using .htaccess and .htpassword - both files are placed in the directory that I wish to have password protected.
It's bringing up a 500 internal server error and I think it's because I have the wrong root directory details - I've read various threads on what it should say and tried a number of varients but still none the wiser. I'm an original freenetname customer.
Here's what I've been putting in my .htaccess file - As I say I've tried numerous varients and I think if I know the write line to put in AuthUserFile it will work ok.
AuthType Basic
AuthName "restricted area"
AuthUserFile /public_html/foldername/.htpasswd
require valid-user
Can anyone help?
David.
It's bringing up a 500 internal server error and I think it's because I have the wrong root directory details - I've read various threads on what it should say and tried a number of varients but still none the wiser. I'm an original freenetname customer.
Here's what I've been putting in my .htaccess file - As I say I've tried numerous varients and I think if I know the write line to put in AuthUserFile it will work ok.
AuthType Basic
AuthName "restricted area"
AuthUserFile /public_html/foldername/.htpasswd
require valid-user
Can anyone help?
David.
Message 1 of 5
(1,378 Views)
4 REPLIES 4
Re: .htsaccess help.
21-04-2014 2:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The AuthUserFile entry needs to be the full path from the server root to the .htpasswd file (not just the part from the user root). Sorry, I don't know what this will be for freenetname users. I assume you haven't been migrated to the Hostopia cgi server?
David
David
David
Message 2 of 5
(319 Views)
Re: .htsaccess help.
21-04-2014 3:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You're making the assumption that this is ccgi - it could be on homepages!
jelv (a.k.a Spoon Whittler) Why I have left Plusnet (warning: long post!) Broadband: Andrews & Arnold Home::1 (FTTC 80/20) Line rental: Pulse 8 Home Line Rental (£14.40/month) Mobile: iD mobile (£4/month) |
Message 3 of 5
(319 Views)
Re: .htsaccess help.
21-04-2014 9:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Not sure what server I sit on but suspect I just don't have the full server root to make it work.
I tried the Plusnet format below too but it didn't work. My account was originally freenetname, who then merged into Madasafish which is now part of plus net so really difficult to tell how the link should read.
AuthUserFile /share/isp/plusnet/www/uu/username/htdocs/path/.htpasswd
I tried the Plusnet format below too but it didn't work. My account was originally freenetname, who then merged into Madasafish which is now part of plus net so really difficult to tell how the link should read.
AuthUserFile /share/isp/plusnet/www/uu/username/htdocs/path/.htpasswd
Message 4 of 5
(319 Views)
Re: .htsaccess help.
22-04-2014 1:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: nevis2 Can anyone help?
Try this:
/share/isp/fnn/www/xx/username
Where 'xx' is the first two characters of your account username.
So if your username was 'nevis2' then try:
/share/isp/fnn/www/ne/nevis2
That points to the root of your webspace, so if your .htpasswd is in a directory like 'public_html' then you'd use:
/share/isp/fnn/www/ne/nevis2/public_html/.htpasswd
Edit: corrected file paths to make them specific to Freenetname.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Message 5 of 5
(319 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page