LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-30-2005, 06:35 PM   #1
vamp
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:

ServerName www.servername.org
UseCanonicalName On

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

I can go to www.servername.org/test and it will redirect to www.servername.org/test/ (test is a directory)

Similarly, servername.org/test redirects to servername.org/test/.

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

Yet, when I go to www.servername.org/~username/test, it does redirect to include the trailing /. Furthermore, servername.org/~username/test also redirects to www.servername.org/~username/test/ (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.

Thanks!
 
Old 01-30-2005, 08:28 PM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
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 www.servername.org into /etc/hosts

IP.OF.SERVER.NAME www.servername.org #/etc/hosts entry
 
  


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
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


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