LinuxQuestions.org
Register a domain and help support LQ
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 10-20-2003, 08:44 PM   #1
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Rep: Reputation: 15
Apache2 Trailing Slash Problem


I'm having problems with this.
I've read up on it within the Docs on the Apache site.. but no help there.
It's all too complicated

I have my domain name...

I would like it to be like this:
http://mydomain.com/section1

But I have to type it like this: (with the trailing Slash)
http://mydomain.com/section1/

Is there no easy way to fix this?
Without using Mod_Rewrite -- I've tried, and no luck there.



Thanks in advance.
Ken
 
Old 10-20-2003, 08:51 PM   #2
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
mod_dir (http://httpd.apache.org/docs-2.0/mod/mod_dir.html) is the one that is responsible for this I believe. And if your still stuck try and look at your "ServerName" directive' as in:

ServerName http://www.you.com/
(Wrong)

ServerName www.you.com
(Right)

Last edited by micxz; 10-20-2003 at 08:53 PM.
 
Old 10-20-2003, 09:07 PM   #3
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Original Poster
Rep: Reputation: 15
I know the severname directive is set correctly.
And I also have the mod_dir installed.

But it still doesn't work correctly.
I read that it's suppose to "auto-redirect" to add the trailing slash if the end user doesn't put one in the URL.

Hmm.

Last edited by xwastedmindx; 10-20-2003 at 09:16 PM.
 
Old 10-20-2003, 09:13 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Have you tried:

httpd -t

Anyerrors?
 
Old 10-20-2003, 09:26 PM   #5
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by micxz
Have you tried:

httpd -t

Any errors?
Although you can't run that command with the 'httpd' -- I did happen to run across something unusual using -- ./httpd configtest and apachectl configest

I seem to be running 2 instances of Apache.
Version 2 and version 1.3

maybe this is my problem?
 
Old 10-20-2003, 09:50 PM   #6
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
I dunno if this is the prob. But you should look at this closely if you got an error.
 
Old 10-20-2003, 09:59 PM   #7
xwastedmindx
Member
 
Registered: Jun 2003
Location: Florida
Distribution: Mandrake 9.1
Posts: 43

Original Poster
Rep: Reputation: 15
No errors. But what I did find is that a few stray Apache 1.3 modules were installed.
Strange..
At least now the 'configtest' doesnt say I'm running Apache 1.3
 
  


Reply


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
Apache2 trailing slash issues! mephitic Linux - Software 2 02-04-2005 04:24 AM
Apache trailing slash boondock_saint Linux - General 9 07-07-2004 04:31 PM
Apache trailing slash puzzler tantric Linux - Software 4 04-11-2004 05:18 PM
Necessary trailing slash in apache directories silversky Linux - Software 3 03-03-2004 04:19 AM


All times are GMT -5. The time now is 05:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration