Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
login with .htaccess
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
- :
- Re: login with .htaccess
login with .htaccess
12-01-2008 11:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Please, can anyone help me?
I have created a password protected folder, but when I put its url into my browser I get the message
<Forbidden
You don't have permission to access /protected2 on this server.>
But there is nowhere where the name and password can be entered.
<This is my file .htaccess:
AuthUserFile/share/isp/free-online/http://www/du/dunbarharbour/htdocs/spages/sillittopages/protected2/.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user>
What have I done wrong?
I have created a password protected folder, but when I put its url into my browser I get the message
<Forbidden
You don't have permission to access /protected2 on this server.>
But there is nowhere where the name and password can be entered.
<This is my file .htaccess:
AuthUserFile/share/isp/free-online/http://www/du/dunbarharbour/htdocs/spages/sillittopages/protected2/.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user>
What have I done wrong?
Message 1 of 9
(2,422 Views)
8 REPLIES 8
Re: login with .htaccess
13-01-2008 2:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi youn need to create a file called .htpasswd and put this in the protected folder as well.
The file should just contain a line with a user name and a pass word in it ie
David:caravan
Ther's a tutorial at
http://usertools.plus.net/tutorials/id/5
Regards glencot
The file should just contain a line with a user name and a pass word in it ie
David:caravan
Ther's a tutorial at
http://usertools.plus.net/tutorials/id/5
Regards glencot
Message 2 of 9
(681 Views)
Re: login with .htaccess
13-01-2008 5:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Add a space after the AuthUserFile and remove the http://www bit.
You also need to create a populate a .htpasswd file (which the AthUserFile is refering to) with a login and encrypted pasword. The tutorial linked above explains this except replace any reference of plusnet in any file paths to free-online
You also need to create a populate a .htpasswd file (which the AthUserFile is refering to) with a login and encrypted pasword. The tutorial linked above explains this except replace any reference of plusnet in any file paths to free-online
Message 3 of 9
(681 Views)
Re: login with .htaccess
13-01-2008 6:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: glencot Hi youn need to create a file called .htpasswd and put this in the protected folder as well.
The file should just contain a line with a user name and a pass word in it ie
David:caravan
Regards glencot
Thanks, Glencot, I had already done that
Quote from: Peter Add a space after the AuthUserFile and remove the http://www bit.
You also need to create a populate a .htpasswd file (which the AthUserFile is refering to) with a login and encrypted pasword. The tutorial linked above explains this except replace any reference of plusnet in any file paths to free-online
Thanks, Peter.
I've now tried that, but still no luck, not even if I put the /www back as shown in the tutorial
I'm going to try deleting the protected folder and starting again
Well, I got the login form now, but my browser evidently can't deal with sending the data Ah, weel
Message 4 of 9
(681 Views)
Re: login with .htaccess
13-01-2008 7:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
If you get it to work let me know.
I've just tried every permutation I can think of and still it won't let me in.
Never had any success with it.....401's every time
I've just tried every permutation I can think of and still it won't let me in.
Never had any success with it.....401's every time
Windows 10 Firefox 109.0 (64-bit)
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine
Message 5 of 9
(681 Views)
Re: login with .htaccess
13-01-2008 11:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
First Linux is case sensitive when it comes to directory and filenames so make sure all directories are lowercase and try not to use any spaces. This is where many people trip up whe they are used to windows which is case insensitive.
.htaccess should look like this
This is assuming from your htdocs folder you have the following directories:
spages/sillittopages/protected2/
Try putting a file with content called file.txt in the protected2 directory and checking you can access it with a URL http://www.dunbarharbour/spages/sillittopages/protected2/file.txt
When that works you know you have the path right.
Next create the login & encrypted password to put in the .htpasswd file from http://users.plus.net/htpasswd/ and copy it and the .htaccess file to htdocs/spages/sillittopages/protected2 directory
How are you uploading the .ht* files to your webspace as there can be issues between windows text files and unix text files. It is best to use something like FTP.
Note: This all assumes the change from free-online to plusnet has not changed any paths to your htdocs.
.htaccess should look like this
AuthUserFile /share/isp/free-online/www/du/dunbarharbour/htdocs/spages/sillittopages/protected2/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require valid-user
This is assuming from your htdocs folder you have the following directories:
spages/sillittopages/protected2/
Try putting a file with content called file.txt in the protected2 directory and checking you can access it with a URL http://www.dunbarharbour/spages/sillittopages/protected2/file.txt
When that works you know you have the path right.
Next create the login & encrypted password to put in the .htpasswd file from http://users.plus.net/htpasswd/ and copy it and the .htaccess file to htdocs/spages/sillittopages/protected2 directory
How are you uploading the .ht* files to your webspace as there can be issues between windows text files and unix text files. It is best to use something like FTP.
Note: This all assumes the change from free-online to plusnet has not changed any paths to your htdocs.
Message 6 of 9
(681 Views)
Re: login with .htaccess
14-01-2008 12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
*Dick hangs his head in shame*
When I keyed in
AuthUserFile /share/isp/force9/www/xx/username/htdocs/protected/.htpasswd
for the xx I put in the first 2 letters of the protected page login username not my account username
Now it works.
Thanks Peter for demonstrating outstanding patience in the face of absurdity.
*Dick sneaks off to play with his new toy*
When I keyed in
AuthUserFile /share/isp/force9/www/xx/username/htdocs/protected/.htpasswd
for the xx I put in the first 2 letters of the protected page login username not my account username
Now it works.
Thanks Peter for demonstrating outstanding patience in the face of absurdity.
*Dick sneaks off to play with his new toy*
Windows 10 Firefox 109.0 (64-bit)
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine
To argue with someone who has renounced the use of reason is like administering medicine to the dead - Thomas Paine
Message 7 of 9
(681 Views)
Re: login with .htaccess
14-01-2008 5:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Message 8 of 9
(681 Views)
Re: login with .htaccess
14-01-2008 11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Peter First Linux is case sensitive when it comes to directory and filenames so make sure all directories are lowercase and try not to use any spaces. This is where many people trip up whe they are used to windows which is case insensitive.
.htaccess should look like this
AuthUserFile /share/isp/free-online/www/du/dunbarharbour/htdocs/spages/sillittopages/protected2/.htpasswd
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require valid-user
This is assuming from your htdocs folder you have the following directories:
spages/sillittopages/protected2/
Try putting a file with content called file.txt in the protected2 directory and checking you can access it with a URL http://www.dunbarharbour/spages/sillittopages/protected2/file.txt
When that works you know you have the path right.
Next create the login & encrypted password to put in the .htpasswd file from http://users.plus.net/htpasswd/ and copy it and the .htaccess file to htdocs/spages/sillittopages/protected2 directory
How are you uploading the .ht* files to your webspace as there can be issues between windows text files and unix text files. It is best to use something like FTP.
Note: This all assumes the change from free-online to plusnet has not changed any paths to your htdocs.
Thanks, Peter. The only part of that which differs from what I did was the <auth/group> line. So I tried it again with that line included, and a newly acquired code for the password file. Again I could get to the request for a password when I clicked on a link to a file in the protected folder, but still the form simply came back twice when I entered the data and then it brought up the 401 message.
Tomorrow I will try starting again absolutely from scratch again.
Still no different. Any other suggestions?
Message 9 of 9
(681 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
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: login with .htaccess