.htaccess on CGI folder
- 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
- :
- .htaccess on CGI folder
.htaccess on CGI folder
10-12-2007 3:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have used exactly the same .htpasswd file, but I am experiencing similar problems to other 'posts' on this forum i.e. when I access the directory on the CCGI server it brings up the log in screen as normal but will not recognise the user name/password !!
Other's seem to have had success when they changed their AuthUserFile but it doesn't seem to be working for me..........
AuthUserFile /files/home2/username/members/.htpasswd
Am I overlooking something obvious, like htaccess is no longer available on the CCGI server?
Ian
Re: .htaccess on CGI folder
10-12-2007 8:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Note: it is not possible to protect any .php files on the ccgi server, just in case that was something you were planning to do.
Re: .htaccess on CGI folder
10-12-2007 9:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
No PHP files they are just plain HTML.
Re: .htaccess on CGI folder
10-12-2007 9:48 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just a quick question though, I suspect the answer will be no. as I understand it the two servers are independant but, could I set the .htaccess file to look for the password data on my www space?
If not, is there a way to have just one .htpasswd file to adminster both WWW & CCGI?
Ian
Re: .htaccess on CGI folder
10-12-2007 9:55 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: .htaccess on CGI folder
10-12-2007 10:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As Jelv says, just move the whole site to the ccgi webspace as it is more than capable of handling it. However, if you are using your www.username.plus.com, this cannot be pointed to the ccgi webspace, you will have to use ccgi.username.plus.com. If you have a domain then it can have www pointing to the ccgi.
Re: .htaccess on CGI folder
11-12-2007 8:32 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just in case your wondering why I've moved part of the site, I have some scripts which which will write the required data to the database without the need to be connected, fingers crossed this will work O.K.
Ian
Re: .htaccess on CGI folder
13-12-2007 9:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have .htaccess set up on a directory which contains a .pl script which in turn is accessing a database, if I try to access any html files on that directory, from outside the directory, I am asked to login as expected, but if I link to the script from outside the directory it executes and reveals the data !!!!
.htaccess looks like this..................
--------------------
AuthUserFile /files/home2/*****/cgi-bin/sc/.htpasswd
AuthName "*****"
AuthType Basic
AuthGroupFile /dev/null
require valid-user
ErrorDocument 404 http://www.*****co.uk/404.html
<Files .htaccess>
order allow,deny
deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?*****.co.uk/.*$ [NC]
RewriteRule \.(gif|jpg)$ -
--------------------
Anybody got any idea what's wrong please?
Ian
Re: .htaccess on CGI folder
13-12-2007 10:09 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: .htaccess on CGI folder
14-12-2007 9:26 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I don't want to use MySQL.
Ian
Re: .htaccess on CGI folder
16-12-2007 5:21 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
if it's on the ccgi server you have a problem.
the rewrite engine code points to www , which will create a ton of problems on the ccgi server.
Trust me .. I've been there.
if it's on the www server .. then forget that I spoke.
Re: .htaccess on CGI folder
16-12-2007 7:51 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Does anyone know how to get the .htaccess file to work on the cgi server. I have spent over a week trying to get this to work and getting no where. I need to protect a file so no external users can see the contents. have searched all over the web and lost count the number of options that I have tried.
currently have a .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
this according to a website says it should stop someone viewing the .htaccess file. Doesn't work. Is there something I need to activate on Plusnet ?
I'm beginning to think .htaccess files are not available on the CGI server. I can get the .htaccess file working on the other server.
Anyone have any ideas. I'm tearing my hair out with this
Re: .htaccess on CGI folder
16-12-2007 7:53 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
However, .htaccess should be prevented from being read by browsers by default, anyway.
Re: .htaccess on CGI folder
16-12-2007 8:05 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
<?php
$filename = ".htaccess";
$output = file_get_contents($filename);
echo $output;
?>
I used a my old dialup service to run this and it list the contents of the .htaccess file without any problems.
What I was originally trying to do was to protect a file containing the username and password for logging into Mysql.
There was an artical on plusnet showing how to do this.
problem is I dont want other users getting full access to the database
Re: .htaccess on CGI folder
16-12-2007 8:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- 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
- :
- .htaccess on CGI folder