Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trailing Slash on 10.3 server.



Jason Warren said:

>This has probably been answered here before but I have failed to find a 
>solution.
>
>In 10.3 server if I load the following URL:
>http://www.mydoamin.com/somedir
>
>it will error.If I add the trailing / it will load fine.

Files and directories are different things to apache. If there is no
such file called "somedir" in your web root, it is natural to receive a
404. When you add the slash, you are now asking for the default index
file in the directory named "somedir" (or auto-index generation, or
whatever arcane behaviour you may have configured). Because it doesn't
really make sense to just request a directory, either :-)


>Funny thing is I have an OS X 10.3 client box that I configured as a
web 
>server with virtual host and it does not suffer from this issue. By 
>default apache is adding the trailing /.

Yeah I've noticed this too, I think.


>Any ideas on how to fix this?

Compare the /etc/httpd/httpd.conf file on the box that works to the
/etc/httpd/httpd.conf file on the box that doesn't. Use apache docs to
figure out which differences are relevant to the problem. Copy the
changes from the working config to the non-working config. Restart
apache on the target box.

PS: I'm pretty sure a rewrite rule is responsible, so try looking for
that.

Cheers
James

-- 
James Tolchard
ICT Services
Christ's College Canterbury
DDI: +64-3-364-6806
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.