LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-02-2004, 10:46 PM   #1
silversky
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. "http://server.com/files" no page will be returned until I add the trailing slash, making the url become "http://server.com/files/". 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!

-Steve
 
Old 03-03-2004, 01:46 AM   #2
Axion
Member
 
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, 01:49 AM   #3
Axion
Member
 
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, 03:19 AM   #4
Cerbere
Member
 
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:

v1.3
v2.0

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

Enjoy!
--- Cerbere
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:30 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