Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 7th, 2001, 10:47 AM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
trouble browsing to directory without trailing /

How can I set it up so I can browse to a directory without having to include a trailing forward slash?

(ex.) http://example.com/~user
(instead of) http://example.com/~user/

error message without the trailing / :
'Cannot find server or DNS Error'

Thanks for any help.

Eric

Reply With Quote
  #2  
Old November 7th, 2001, 11:49 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> so I can browse to a directory without having to include a trailing forward slash

This issue has been addressed age ago and normally it shouldn't happen to Apache 1.3.xx.

>> error message without the trailing /

Because Apache can't determine your FQDN. It's not Apache problem but your basic system configuration. Once you set your IP to map to a FQDN, then restart Apache the error should go away automatically.

Keep in mind, when your request_uri doesn't contain a trailing forward slash, AT ALL TIME, it will put a load on Apache to look for the request file and see if it's a file or a directory.
That said, when you are requesting a uri path -> as a directory in file system, you should add the slash at all time. When a trailing slash is added, Apache will know immediately you are requesting a directory, not a file.

Anyhow, there is a way to force Apache to do external redirection explictly like so:

UserDir http://your-non-fqdn-here/~*/

This way is not recommended but it will work. But you really should fix your non-FQDN instead.

Another stupid way is to enable MultiViews.

Last edited by freebsd : November 7th, 2001 at 11:52 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > trouble browsing to directory without trailing /


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway