Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Usernames on CGI server
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
- :
- Usernames on CGI server
Usernames on CGI server
20-08-2008 11:54 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi.
Plusnet support tell me you can use .htaccess protection on the cgi servers but I can't get it to work.
My setup is as follows. Pages are still displayed but with no password prompt?
http://ccgi.robsbots.co.uk/cgi-bin/archi/admin/admin.cgi
is the page in question.
Details of server config:-
pwd output of dir to be protected.
----------------------------------
/files/home3/robertl/cgi-bin/archi/admin
Files in directory.
-------------------
.htaccess CHMOD 744
.htpasswd CHMOD 744
admin.cgi CHMOD 755
File .htaccess
--------------
AuthUserFile /files/home3/robertl/cgi-bin/archi/admin/.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user
File .htpasswd
--------------
user:xXA9mt4Afp9N6
Access details
--------------
Username : user
Password : password
Any ideas why this is not working ?
Thanks
Robert Last
Plusnet support tell me you can use .htaccess protection on the cgi servers but I can't get it to work.
My setup is as follows. Pages are still displayed but with no password prompt?
http://ccgi.robsbots.co.uk/cgi-bin/archi/admin/admin.cgi
is the page in question.
Details of server config:-
pwd output of dir to be protected.
----------------------------------
/files/home3/robertl/cgi-bin/archi/admin
Files in directory.
-------------------
.htaccess CHMOD 744
.htpasswd CHMOD 744
admin.cgi CHMOD 755
File .htaccess
--------------
AuthUserFile /files/home3/robertl/cgi-bin/archi/admin/.htpasswd
AuthName "Please Log On"
AuthType Basic
require valid-user
File .htpasswd
--------------
user:xXA9mt4Afp9N6
Access details
--------------
Username : user
Password : password
Any ideas why this is not working ?
Thanks
Robert Last
Message 1 of 5
(1,412 Views)
4 REPLIES 4
Re: Usernames on CGI server
20-08-2008 5:50 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi Robert,
As far as I'm aware, .htaccess isn't fully supported on the CGI platform. Here's an excerpt from a response we gave to the Usergroup when this was raised as an issue a while back:
We're currently looking into the hosting solutions we offer. In the interim, you might want to take a look at our sister company PAYH.
As far as I'm aware, .htaccess isn't fully supported on the CGI platform. Here's an excerpt from a response we gave to the Usergroup when this was raised as an issue a while back:
Quote The way PHP is setup on the CCGI server is as a separate process and not as an apache module. This means apache cannot protect access to .php files using .htaccess because it no longer controls access to such files.
Because no php file is found, apache is just protecting the directory as if that was all that was specified. When a php file is found, it is processed by the external php application before any .htaccess protection is checked for.
AFAIK, it is possible to enforce .htaccess permissions on non-PHP files.
We're currently looking into the hosting solutions we offer. In the interim, you might want to take a look at our sister company PAYH.
Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵
Message 2 of 5
(396 Views)
Re: Usernames on CGI server
20-08-2008 6:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As well as it not protecting .php files, you cannot use it within the cgi-bin directory.
Message 3 of 5
(396 Views)
Re: Usernames on CGI server
03-09-2008 1:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks for your replies.
Does this mean there is no way to password protect any cgi files.
I want to add some admin cgi files to a site.
Only the owner of the site should have access to them.
Not genreal users.
Is there no way of doing this ?
Thanks for your help
Rob
Does this mean there is no way to password protect any cgi files.
I want to add some admin cgi files to a site.
Only the owner of the site should have access to them.
Not genreal users.
Is there no way of doing this ?
Thanks for your help
Rob
Message 4 of 5
(396 Views)
Re: Usernames on CGI server
03-09-2008 1:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I do this type of thing (not on Plusnets servers), by setting a session variable when the user logs in, and then on each page I check if the session variable is set. If so the page continues, if not they get the login box.
Phil
Phil
Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.
Message 5 of 5
(396 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
- :
- Usernames on CGI server