Solved

Weird Apache Problem

Posted on 2000-03-14
4
192 Views
Last Modified: 2013-12-15
Hi All,

  I have a really annoying apache problem. I'm trying to define HEADER and README file via the ReadmeName and HeaderName directives. As far as apache is considered the configuration is ok, as running 'apachectl configcheck' reports no errors.
  However, when I come into the directory, the files do not appear in the page. If you have no idea what I'm talking about, I mean that I gave directory view permission on a directory, then on top there should be the HEADER text, and on the bottom should be the README text.

Any comments will be available.
0
Comment
Question by:nirsim
  • 2
4 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2615861
What version of Apache are you using and can I please see the section of your conf file that defines the directory?
0
 
LVL 2

Accepted Solution

by:
bernardh earned 350 total points
ID: 2616898
Header and Readme files should be relative to the directory you are indexing. Say you are indexing the directory /internet, your file should be located on /internet/HEADER.html or /internet/HEADER

and make sure mod_dir module exist on your server
0
 
LVL 2

Expert Comment

by:bernardh
ID: 2616918
oops, the module mod_dir is in the mod_dir.c file, and is compiled in by default.
0
 
LVL 2

Author Comment

by:nirsim
ID: 2617530
Hi There,

  Well, your answer wasn't complete, but it had given me a pointer where to look. Aparently, if you leave the directive as ReadmaName README, the apache will disregard the README file. So, I changed it to README.txt, and now it works. :-)

Regards,
  Nir Simionovich
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now