httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Directory Index not displaying
Date Thu, 24 Nov 2011 03:53:20 GMT
>
>   <body>
>         <h1>README FILE</H1>
>         p>This is the readme file</p>
>   </body>
>


If the file is not displaying maybe is because of the wrong <p> tag above.
The < is missing from <p> ...Firefox has couple of plugins that can show
you errors like this one.

Also maybe try to include the following meta tag in the <head> section of
the README.html to tell apache it is text/html file for sure:

<meta http-equiv="content-type" content="text/html;charset=utf-8">



On Thu, Nov 24, 2011 at 2:41 PM, Igor Cicimov <icicimov@gmail.com> wrote:

> I'm not sure what you are trying to achieve here by modifying these files.
>
> To get the directory listing, from mod_autoindex documentation:
>
> "Automatic index generation is enabled with using Options +Indexes. See
> the Options <http://httpd.apache.org/docs/2.2/mod/core.html#options>directive for
more details."
>
>
> If you have a look at Options directive:
>
> Indexes If a URL which maps to a directory is requested, and there is no
> DirectoryIndex<http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex>(
> *e.g.*, index.html) in that directory, then mod_autoindex<http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html>will
return a formatted listing of the directory.
> So all you need to get a directory listing is:
>
> 1. Optins +Indexes (in the directory command)
> 2. You should NOT have any index file in that directory
>
>
>
>
>
> On Thu, Nov 24, 2011 at 8:26 AM, Stan Laughlin <stan.laughlin@gmail.com>wrote:
>
>> 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.plindex.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@gmail.com
>> "*Beer is always in season*"
>>
>
>

Mime
View raw message