- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: .htaccess
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 08:42 PM
06-05-2002 08:42 PM
I have put the .htaccess and .htpasswd .htgroup
to the /opt/webdocs, but it doesn't pop up
the password window.
Can someone post the 3 files? and how to set
it up?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:00 PM
06-05-2002 09:00 PM
Re: .htaccess
Did you include this in your httpd.conf:
AllowOverride all
Order allow,deny
Allow from all
Your .htaccess should like something like this:
AuthUserFile /etc/htpasswds/.htpasswd
AuthName "This is a test"
AuthType Basic
require valid-user
NOTE: For security reasons, your .htaccess should NOT reside in the same directory as your .htpasswd.
Use the htpasswd command to create the password file .htpasswd.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:11 PM
06-05-2002 09:11 PM
Re: .htaccess
sorry for giving 7 point, I just want
to continue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:15 PM
06-05-2002 09:15 PM
Re: .htaccess
I missed that out.
.htgroup
The format of the group file is one line per group, with the line containing the group name, followed by a colon, followed by the users in the group. Users are separated by commas e.g.
all:steven, michael
admins:michael
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:18 PM
06-05-2002 09:18 PM
Re: .htaccess
If you want to use .htgroup as well, then your .htaccess should look something like this:
AuthUserFile /etc/htpasswds/.htpasswd
AuthGroupFile /etc/htpasswds/.htgroup
AuthName "This is a test"
AuthType Basic
require valid-user
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:19 PM
06-05-2002 09:19 PM
Re: .htaccess
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:25 PM
06-05-2002 09:25 PM
SolutionOn my webserver, I don't have that many users that would require authentication based on groups (i.e. identical users in different groups etc), thus I only rely on .htpasswd and .htaccess. Changes to note include the AuthUserFile specification in .htaccess and the modifications in httpd.conf.
That works for me without any problems. I used a lot of .htpasswd authentication on my website: https://www.beepz.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:26 PM
06-05-2002 09:26 PM
Re: .htaccess
On my webserver, I don't have that many users that would require authentication based on groups (i.e. identical users in different groups etc), thus I only rely on .htpasswd and .htaccess. Changes to note include the AuthUserFile specification in .htaccess and the modifications in httpd.conf.
That works for me without any problems. I used a lot of .htpasswd authentication on my website: https://www.beepz.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:27 PM
06-05-2002 09:27 PM
Re: .htaccess
On my webserver, I don't have that many users that would require authentication based on groups (i.e. identical users in different groups etc), thus I only rely on .htpasswd and .htaccess. Changes to note include the AuthUserFile specification in .htaccess and the modifications in httpd.conf.
That works for me without any problems. I used a lot of .htpasswd authentication on my website: https://www.beepz.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:27 PM
06-05-2002 09:27 PM
Re: .htaccess
On my webserver, I don't have that many users that would require authentication based on groups (i.e. identical users in different groups etc), thus I only rely on .htpasswd and .htaccess. Changes to note include the AuthUserFile specification in .htaccess and the modifications in httpd.conf.
That works for me without any problems. I used a lot of .htpasswd authentication on the links in my website: https://www.beepz.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:29 PM
06-05-2002 09:29 PM
Re: .htaccess
On my webserver, I don't have that many users that would require authentication based on groups (i.e. identical users in different groups etc), thus I only rely on .htpasswd and .htaccess. Changes to note include the AuthUserFile specification in .htaccess and the modifications in httpd.conf. In addition, remember to check the ownership and permissions of .htaccess, .htpasswd and .htgroup. The nobody (or apache or httpd depending on which is used) UNIX user account must have read permissions to these files.
That works for me without any problems. I used a lot of .htpasswd authentication on the links in my website: https://www.beepz.com
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2002 09:34 PM
06-05-2002 09:34 PM
Re: .htaccess
Please ignore the duplicate postings. I have problems posting in the forum just now. Ignore all the duplicates except the last post before this.
Sorry about the duplicates. Please kindly ignore then. Thanks. Regards.
Steven Sim Kok Leong