[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

problem with path to CGI file which tests .htaccess

Posted on 2001-08-20
7
Medium Priority
?
178 Views
Last Modified: 2013-12-25
If I enter
http://www.myISP.com/~myUsername/cgi-bin/password-protected directory/authen.cgi
into my browser, I get the prompt for username and password like I'm supposed to, but if I enter
http://www.myDomainName.com/cgi-bin/password-protected directory/authen.cgi
into my browser I get an error message saying my ISP can't find that file.  Why can't I use my domain name?

the directory
home/users/m/myUserName/www/cgi-bin/password-protected directory
contains the following files:

.htaccess

AuthUserFile /home/users/m/myUserName/public_html/cgi-bin/password-protected directory/.htpasswd
AuthName "Owner"
AuthType Basic

require valid-user

*******

.htpasswd

you:QTVNZznsa8t3c
up:La/1nQpmdvpHc
************

authen.cgi

#!/usr/bin/perl -w
# authen.cgi
use strict;
use CGI;
my $q = new CGI;
my $user = "";
$user = $q->remote_user();
print $q->header();
print $q->start_html("Authentication Test");
print <<Text;
$user<br>
Text
;
print $q->end_html();

0
Comment
Question by:myudt
  • 4
  • 2
7 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 400 total points
ID: 6409986
If your ISP said that it "can't find that file", it's a routing or DNS problem at your ISP.
Are you shure that the message comes from your ISP?
0
 

Author Comment

by:myudt
ID: 6410419
Yes, I'm sure.  The message comes in the form of a webpage with the ISP's logo and the following message:

Document Not Found

We're sorry, the file you have requested can not be found on any of our
servers.

You can use your browser's Back Arrow to return to the previous page.

The pages in the area you were attempting to access appear to be maintained by webmaster@myDomainName.com.
0
 

Author Comment

by:myudt
ID: 6410791
Yes, I'm sure.  The message comes in the form of a webpage with the ISP's logo and the following message:

Document Not Found

We're sorry, the file you have requested can not be found on any of our
servers.

You can use your browser's Back Arrow to return to the previous page.

The pages in the area you were attempting to access appear to be maintained by webmaster@myDomainName.com.
0
[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

 

Author Comment

by:myudt
ID: 6410795
ahoffmann, I'm having my ISP check for possible problem.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6412196
Soungs like you're using the proxy at your ISP.
0
 
LVL 16

Expert Comment

by:maneshr
ID: 6418217
myudt,

"..Why can't I use my domain  name?.."

Can you pl. post the exact URL here?

that will help me provide you with a more accurate suggestion for a solution.

Let us know.
0
 

Author Comment

by:myudt
ID: 6420253
ahoffmann, you get the points, you pointed me in the right direction -- to my ISP.  According to my ISP, I cannot access a .htpasswd - protected directory that is under my cgi-bin directory via my domain name, only via my ISP's domain name.  They didn't explain why, and I don't know enough about UNIX to speculate.  

In other words, what I was experiencing was not really an error, it seems to be how their system is configured.

At any rate, I have to put my protected directory under my www directory -- no big deal.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Suggested Courses
Course of the Month19 days, 18 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question