Forum Moderators: phranque

Message Too Old, No Replies

Problem accessing index.html

         

skwilliams

7:56 pm on Feb 22, 2005 (gmt 0)

10+ Year Member



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 [172.25.205.110....]
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 [172.25.205.110...] I go to this URL [172.25.205.110...]

Do I need to change something?

jdMorgan

2:02 am on Feb 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



skwilliams,

Welcome to WebmasterWorld!

Look for the DirectoryIndex directive in httpd.conf, and make sure that index.html appears in the index files candidate list before any of the customized WC script names.

I don't know anything about this application suite, so this is just a best-guess.

Jim

skwilliams

1:27 pm on Feb 23, 2005 (gmt 0)

10+ Year Member



I looked for that. Here is that section of the httpd.conf file.

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex

It should come up to a login page, but the login.cgi file displays the script instead of a login page.

jdMorgan

6:32 pm on Feb 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unless you snipped the code just as things were getting interesting, it looks like your DirectoryIndex declaration is blank.

The directive should list the names of your default directory index files, from most-preferred to least-preferred. The server will look for the index files in this order if no index file is specified in the browser request.

So, it might look like:


DirectoryIndex index.html index.htm wc_sript_name.php whatever.cgi

If login.cgi is displaying the the script's code instead of the script's output, then that indicates that the script is not running, or that the script (or the server configuration) is not returning a correct MIME-type (text/html) for content generated by the script.

It sounds like a call to the script provider would be in order here.

Jim

skwilliams

6:58 pm on Feb 23, 2005 (gmt 0)

10+ Year Member



I've added this to the httpd.conf file, but get the same results.