Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-02-2004, 11:46 PM   #1
LQ Newbie
Registered: Jan 2004
Location: I'm a hermit.
Distribution: Slackware 9.1
Posts: 29

Rep: Reputation: 15
Question Necessary trailing slash in apache directories

I am running the default apache server that came with slackware 9.1. I am not going to uninstall, recompile, or do anything else with it because other than this it works, and I know what a pain it can be to get apache successfully up and running. Before you type an answer, keep in mind that re-installing is not the answer. Thank you for your consideration.

The big problem is that whenever I want to access a directory, e.g. "" no page will be returned until I add the trailing slash, making the url become "". How can I make apache find the directory without needing that stupid trailing slash? I'm pretty sure it's a config file setting, but I don't know which setting and I'm not about to mess up my config file too, when somebody probably knows what needs changed to make it work.

All due thanks!

Old 03-03-2004, 02:46 AM   #2
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Rep: Reputation: 30
I understand you do not want to reinstall, but I had the exact same problem as you...Slack 9.1 and everything. What I did was reinstall and it worked wonders. You could however, compare your httpd.conf with one from a new install...however, I'm not sure of which option needs to be changed...or if Slackware passed an option during compilation configuration....all I know is a recompile fixes it perfectly. Also, this seems to only be an issue with Apache 2.0.
Old 03-03-2004, 02:49 AM   #3
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware 9.1, Gentoo 2004.1
Posts: 153

Rep: Reputation: 30
BTW, it takes but 15 seconds to compile Apache on a 1GHz, and about 1 minute to tweak it's configuration to my liking...unless you have many modules to install, Apache is very easy to install and takes VERY little time. Also, please note that if you are using PHP it is NOT recommeneded to use it with Apache 2.0 and you should compile 1.3.x anyway.
Old 03-03-2004, 04:19 AM   #4
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
I'm still using Slack 9, so I don't know which version of Apache comes with 9.1, but you can find your answer at one of these two links:


Scroll down to the section titled 'Trailing Slash Problem'.

--- Cerbere


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trailing slash problem in apache... or DNS? Swakoo Linux - Newbie 1 06-07-2005 11:20 PM
no trailing slash -> apache redirect to microsoft site? SerfurJ Linux - Software 6 03-15-2005 07:25 AM
Apache trailing slash boondock_saint Linux - General 9 07-07-2004 04:31 PM
trailing slash in Apache gives 404 errors rabbate Linux - General 6 04-30-2004 09:34 AM
Apache trailing slash puzzler tantric Linux - Software 4 04-11-2004 05:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:36 AM.

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