Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem accessing index.html

Status
Not open for further replies.

skw8966

Programmer
Apr 12, 2001
59
US
I have a Linux web server running Apache web server on RedHat 9.
My web directory is /home/httpd/html. I have an index.html there and am able to view it under I have a folder under that directory called WebCall (a helpdesk tracking application). It contains the folders bin, doc, help, html, images, logs, Phone, and Reports as well as its own index.html file. I followed the setup instructions.
My problem is when I go to I go to this URL
Do I need to change something?
 
Have you looked at the contents of /home/httpd/html/webcall/index.html in order to determine if it is redirecting you to the login.cgi page on purpose?


----------
HTH
Gavin Ostlund
 
It does appear to be redirecting me which is fine but when it brings up the login.cgi URL this is what displays.

#!/usr/bin/perl
#############################################################################
# #
# This copyright data applies to all source files #
# #
# Phone, Copyright (c) 2000 Steven Wishart, All Rights Reserved. #
# #
# Module : login.cgi #
# Type : Perl Source file #
# Description : Login into System #
# #
# This software is provided `AS IS' and without any express or implied #
# warranties, including, without limitation, the implied waranties of #
# merchantabulity and fitness for a particular purpose. #
# #
# Redistribution and use of source are permitted provided that: #
# #
# (1) source distributions may not be sold for profit on physical media #
# such as disks, tapes, and CD-ROMS, without expressed written permission #
# from the author. #
# #
#############################################################################
require "cgi-lib.pl";
require "config.pl";

# --- Read cookie
use CGI;
my $query = new CGI;

print $query->header;

my $cookie = $query->cookie("WebCall_Login");

if($cookie)
{
# print $cookie;
@Cookie = split(/\|/, $cookie);
}
# --- End of Read Cookie



print <<"ENDOFTEXT";

</head>
<body text="#333333" bgcolor="#FFFFFF" link="#336699" vlink="#336699">
&nbsp;
<center><table BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="645" >
<tr>
<td ALIGN=RIGHT VALIGN=TOP COLSPAN="2"><br></td>

<td ALIGN=RIGHT><a href="login.cgi"><img SRC="$Site/$ImageDir/b-home_F2.gif" NAME="home_button" NOSAVE BORDER=0 height=22 width=62></a></td>
</tr>

<tr>
<td ALIGN=RIGHT VALIGN=TOP ROWSPAN="2"><img SRC="$Site/$ImageDir/corp-image1.gif" NOSAVE height=186 width=209>
<br><img SRC="$Site/$ImageDir/spacer1.gif" NAME="hsidebar" BORDER=0 height=17 width=196>
<table BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH="190" >
<tr VALIGN=TOP>
<td>•</td>

<td><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-2><a href="ForgotPasswordScreen.cgi" target="_blank">Request
New Password</a></font></font></td>
</tr>

<tr VALIGN=TOP>
<td></td>

<td><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-2></font></font></td>
</tr>

<tr VALIGN=TOP>
<td></td>

</tr>

<tr VALIGN=TOP>
<td></td>

<td><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-2></font></font></td>
</tr>
</table>
</td>

<td ALIGN=RIGHT BGCOLOR="#000000"><img SRC="$Site/$ImageDir/spacer1.gif" height=1 width=1></td>

<td VALIGN=TOP></td>

<td VALIGN=TOP>&nbsp;</td>

<td VALIGN=TOP>&nbsp;</td>
</tr>

<tr>
<td ALIGN=RIGHT BGCOLOR="#000000"><img SRC="$Site/$ImageDir/spacer.gif" height=1 width=1></td>

<td VALIGN=TOP><img SRC="$Site/$ImageDir/spacer.gif" height=5 width=125>
<table BORDER=0 CELLSPACING=0 CELLPADDING=15 WIDTH="100%" >
<tr>
<td><img SRC="$Site/$ImageDir/t-corp_customers.gif" NOSAVE height=17 width=69><font color="#999900">,</font>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-1>Welcome
to the WebCall Access Homepage</font></font>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-1>The
application services below are to access the WebCall Ticket Tracking System.
If you have any questions or concerns please contact the <a href="mailto:$AdminEmail">Webmaster</a>.</font></font>
<br>
<!--
<P><FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="2"><BR>
-->
<form name="login" action="logincheck.cgi" METHOD="GET">
<table BORDER=0 >
<tr>
<td ALIGN=RIGHT VALIGN=CENTER><b><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-1>Username:</font></font></b></td>

<td><input NAME="login" value="$Cookie[0]" MAXLENGTH="256"></td>
</tr>

<tr>
<td ALIGN=RIGHT VALIGN=CENTER><b><font face="Verdana, Arial, Helvetica, sans-serif"><font size=-1>Password:</font></font></b></td>

<td><input TYPE="password" NAME="password" value="$Cookie[2]" MAXLENGTH="256"></td>
</tr>

<tr>
<td COLSPAN="2">

ENDOFTEXT

if ("$Cookie[1]" eq "1")
{
print "<input type=checkbox name=rememberpw value=\"1\" checked>";
}
else
{
print "<input type=checkbox name=rememberpw value=\"1\">";
}


print <<"ENDOFTEXT";
&nbsp;&nbsp;&nbsp;Save ID & Password
<br>
<br>
</td>
</tr>

<tr ALIGN=CENTER VALIGN=CENTER>
<td COLSPAN="2">
<input TYPE="submit" NAME="submit" VALUE="Login"></td>
</tr>
</table>
</form></td>
</tr>
</table>
<img SRC="$Site/$ImageDir/spacer.gif" height=5 width=1></td>
</tr>

<tr>
<td COLSPAN="3"><img SRC="$Site/$ImageDir/spacer.gif" height=1 width=198><a href="mailto:$AdminEmail"><img SRC="$Site/$ImageDir/b-contact.gif" NAME="bcontact" BORDER=0 height=22 width=93></a>
</td>
</tr>

<tr>
<td WIDTH="209"><img SRC="$Site/$ImageDir/spacer.gif" height=1 width=209></td>

<td WIDTH="1"><img SRC="$Site/$ImageDir/spacer.gif" height=1 width=1></td>

<td WIDTH="435"><img SRC="$Site/$ImageDir/spacer.gif" height=1 width=435></td>
</tr>
</table></center>

ENDOFTEXT

# Close the document cleanly.
print &HtmlBot;

 
Check your httpd.conf file. You might need

AddHandler cgi-script .cgi
and
Options ExecCGI
for the webcall/bin directory

or

ScriptAlias /webcall/bin /home/httpd/html/webcall/bin

Basically, your web server doesn't know that it's supposed to execute the program, not display it.
 
I've made the changes and restarted Apache.

From my WinXP machine, I try to access the URL through
On IE 6.0, I get:
Forbidden
You don't have permission to access /webcall/bin/login.cgi on this server.
--------------------------------------------------------------------------------
Apache/2.0.40 Server at Abigail Port 80

On Firefox, I still get the login.cgi script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top