Directory Index not displaying

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Folks,
I am running an Ubuntu 11.10 server w/Apache 2.2.
I am familiar with linux and command line but not familiar w/Apache.

When enter the server IP address like this to a browser URL (pretend IP here) :   10.10.10.10/doc/
It will list the default directory Index for the /usr/share/doc/  directory.  All very nice.

Then I edit autoindex.conf for these two values  "HeaderName HEADER.html" and "ReadmeName README.html"
Restart apache and refresh browser.

This is the HEADER.html
<html>
<head>
        <title>"STAN'S DOC INDEX"</title>
</head>
</html>


This is the README.html
<html>
<head>
        <title>"README FILE </title>
</head>
  <body>
        <h1>README FILE</H1>
        p>This is the readme file</p>
  </body>
</html>

The web page shows the "STAN'S DOC INDEX" title.  But there is no directory listing and there is no README info.

The 'dir.conf' file looks like this
<IfModule mod_dir.c>
          DirectoryIndex  HEADER.html index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>

If I remove the HEADER.html text then the page reverts back to the default display and shows the directory index.

So...obviously the thing is picking up the HEADER.html but why isn't it picking up anything else?

I have been trying to make this work for several days.
I have read and re-read the autoindex and Directory module pages.  Because I'm new at this they are somewhat confusing.  A possible solution is the htaccess file but the mod page strongly recommends not going that route.

I would appreciate any suggestions.

Thanks.
stan

--
stan.laughlin@xxxxxxxxx
"Beer is always in season"

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux