Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-30-2005, 06:35 PM   #1
LQ Newbie
Registered: May 2003
Distribution: Slackware-current
Posts: 19

Rep: Reputation: 0
Strange apache trailing / problem - Slack-current, apache 1.3.33

Hi everyone,

I'm using apache 1.3.33 bundled in slackware-current and have encountered some strange behaviors regarding apache's trailing slash.

I have these things set:

UseCanonicalName On

<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes Symlinksifownermatch IncludesNoExec

I can go to and it will redirect to (test is a directory)

Similarly, redirects to

However, and does not redirect to I get the error: "www.hostname.domainname cannot be found. Please check the name and try again."

Yet, when I go to, it does redirect to include the trailing /. Furthermore, also redirects to (it appended the www, or my specified ServerName.

I have done very little to modify the stock slackware httpd.conf file, only uncommenting the few lines that pertain to <Directory /home....> and Servername.

Any help here would be greatly appreciated. I hope I do not have to use mod_redirect; it seems extremely complicated for such a small, yet bizzare problem.

Old 01-30-2005, 08:28 PM   #2
Senior Member
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
What is the hostname of the machine?

Somehow, strangely, I encounter this with Apache in Slackware and Mac Os X.

You can fix this by having hostname=servername.

I am sure there is other ways to fix this. Ummm.. maybe you can add the into /etc/hosts

IP.OF.SERVER.NAME #/etc/hosts entry


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
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
Trailing / Config in Apache johan the olive Linux - Networking 3 03-24-2003 12:06 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:17 PM.

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
Open Source Consulting | Domain Registration