how do I set up a secure page on my website?
- 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
- :
- how do I set up a secure page on my website?
Re: how do I set up a secure page on my website?
02-10-2012 8:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Kmilburn, many thanks for your observations & input but I can make little sense of your reply, please remember that I need really simple, to understand answers. Are you suggesting that I contact PN support for them to explain the error log (sorry to sound so dim)?
Just a thought. As I've tried to create a password & username more than once, although I've always deleted the htaccess & htpasswd files both on my local & remote sites, is there any chance that a previously sent up, different, (as I've set up a different one each time)
username & password could be still linked to my account. As I try to log on using my latest username & password could that be causing the server 500 error code?
Do you know of anyway for me to check the stored username & password ?
Best regards & thanks for your help.
Re: how do I set up a secure page on my website?
02-10-2012 11:12 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The sever will generate a 500 error if it cannot locate the .htpasswd file.
Re: how do I set up a secure page on my website?
03-10-2012 1:19 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Might not be the AuthUserFile path, could be that the .htpasswd file doesn't exist or is incorrectly named.
I've replicated the internal server error 500 problem on my site by renaming .htpasswd so the server wouldn't find it.
Re: how do I set up a secure page on my website?
03-10-2012 5:36 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Have you any other ideas?
Best regards, Mick
Re: how do I set up a secure page on my website?
03-10-2012 7:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The "two experts" as you kindly refer to us are not in dispute - the opposite is the case.
Both of us suggested the server 500 error was likely to be associated with the same problem, namely that Apache (the web server) was unable to interpret the AuthUserFile instruction to determine if access should be allowed so generated the generic error 500 signal instead. That could be because the path /share/isp/.../.htpasswd is incorrect, or the path is correct but the .htpasswd file doesn't exist or its contents are not correct.
Rather than deleting both files I suggest using FileZilla to rename .htaccess and .htpasswd on the remote site (only) to a.htaccess and a.htpasswd (add 'a' in front of each dot, don't change anything else), so that I can take a look.
I've assumed that you are a customer of Plusnet rather than Force9, etc - is that correct? The path will be different for the other vISPs which would lead to getting that error
David
Re: how do I set up a secure page on my website?
03-10-2012 7:43 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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) |
Re: how do I set up a secure page on my website?
03-10-2012 8:00 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: how do I set up a secure page on my website?
03-10-2012 8:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Many thanks.
Mick
Re: how do I set up a secure page on my website?
03-10-2012 8:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: how do I set up a secure page on my website?
04-10-2012 10:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just let me know what you want me to do at this end.
Best regards & best of luck.
Mick
PS: kmilburn, I'll listen & try to understand whatever you say, thanks for your input.
Re: how do I set up a secure page on my website?
05-10-2012 12:15 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for doing that, saved us a bit of to-ing and fro-ing.
The AuthUserFile path is indeed incorrect as kmilburn suggested. You need to change the word "path" towards the end of the string to "newdir" so that the path ends .../htdocs/newdir/.htpasswd
Make this change to htaccess.txt on your own computer using Notepad, save the file then upload it again to /htdocs/newdir using FileZilla.
Rename this file on the remote site to .htaccess and delete the file currently called a.htaccess
Rename a.htpasswd on the remote site back to .htpasswd (ie remove the 'a').
Then try browsing to the members area of your website again.
Hopefully you'll be asked for the username and password again but this time entering these will allow access.
Kind regards
David
Re: how do I set up a secure page on my website?
06-10-2012 11:25 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks again & no doubt I'll talk to you again.
Best regards, Mick.
Re: how do I set up a secure page on my website?
06-10-2012 2:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hopefully it will be obvious what changes are needed if you don't want the protected folder to be called 'newdir' - don't forget to change the path in .htaccess if you change the folder name.
Also you need to ensure the folder contains an index.htm file so that visitors can't list folder contents - though that ability has been very helpful for me. (Preventing indexing could be done using .htaccess but I don't want to complicate this - just ensure folders always contain an index.htm file.)
Thanks for your comments about the article. The first line originally said "To password protect a particular folder in your webspace, follow these steps:", but the article didn't explain why that objective differed from the title. I've added an introductory paragraph which hopefully covers that.
I've also changed the .htaccess 'substitution' explanations to make it clearer that the name of the folder replaces path in the model text, added an explanation of CHMODing and a note at the bottom concerning 500 internal server errors.
Hopefully the changes will provide better guidance for novice users but suggestions for further improvement are welcome.
Kind regards, David
Re: how do I set up a secure page on my website?
07-10-2012 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Best regards,
Mick
Re: how do I set up a secure page on my website?
20-10-2012 10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Do you think that I'm being a bit ambitious?
I've also forgotten my password for the forums, luckily I have one laptop always logged in. How can I retreive it?
Best regards, Mick
- 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
- :
- how do I set up a secure page on my website?