LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2004, 06:11 PM   #1
SeniorSE
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Rep: Reputation: 0
Apache DirectorySlash directive doesn't seem to be working


Hi. I just installed RedHat Linux v8 (Psyche). I installed Apache HTTPD services with the original install.

When I go to a browser and type in the URL with an ending slash on the directory name, it works the way it is supposed to, and index.html is displayed. For example, "linuxserver/dir/". But, when I omit the ending slash, like "linuxserver/dir", I get the Page can not be found error page.

It seems that the DirectorySlash directive is not working properly. I tried setting the DirectorySlash On directive in the httpd.conf file, but then Apache wouldn't start.

Any help you can provide would be greatly appreciated.

Thanks,
Mark

P.S. On a side-note, do you know how to check to see what version of Apache is actually installed on my server? Thanks.
 
Old 11-16-2004, 06:27 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Is UseCanonicalName on or off?
If it's on, is ServerName valid?(ie a proper name that the clients can resolve, instead of say localhost)

Also if the directory is an alias did you put the trailing slash in the alias directive?

apachectl -v
 
Old 11-16-2004, 10:52 PM   #3
SeniorSE
LQ Newbie
 
Registered: Nov 2004
Posts: 14

Original Poster
Rep: Reputation: 0
Smile UseCanonicalName was set to On

Thanks for the info.

The UseCanonicalName was set to On. I turned it off, and it worked like a charm.

Thanks, again.

Mark
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ServerTokens Directive Apache with SLOX4.1 sln Linux - Security 1 05-31-2005 12:52 PM
apache User directive merchtemeagle Linux - Software 2 03-07-2005 03:42 PM
Apache 'Listen' directive doesn't work robbiemorgan Linux - Software 0 11-22-2004 11:49 AM
Apache Directive sopiaz57 Linux - Security 2 12-09-2003 01:32 PM
Alias directive in Apache 1.3.22 mswebs Linux - Networking 2 08-01-2003 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration