Solved

Weird Apache Problem

Posted on 2000-03-14
4
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

691 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