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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 3rd, 2001, 03:24 AM
jester jester is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Hong Kong
Posts: 47 jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 32 sec
Reputation Power: 9
Question http:// cannot read directory?

Dear All,

I have a problem.
When I type http://www.xxx.com/directory in the browser, it said "Page cannot be found".
But when I type http://www.xxx.com/directory/ (add "/" at the end of the directory). It can display the URL correctly.
Why this happen?

I think the problem might come out from Apache, right?
Can anyone help? Thank you so much!

(OS: Apache 1.3.19, with Redhat 7.1)

Regards,
Jester
__________________
======================
Linux is Great ! Try !

Reply With Quote
  #2  
Old October 3rd, 2001, 09:08 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
Same issue, so start here -> http://forums.devshed.com/showthrea...3170&forumid=15

This kind of 404 error happens when directory is NOT physically under your docroot and you are using Alias or AliasMatch.

The fix for your problem is to add a trailing slash like so:

Alias /directory/ "/path/to/directory/"

Additionally, when it's not under your docroot, you need to specify a <Directory> block for the system path (no symlink) to your directory like so:

<Directory "/full/system/path/no/symlink/here/directory">
Options xxxx
AllowOverride xxxx
....
</Directory>

Reply With Quote
  #3  
Old October 3rd, 2001, 09:11 PM
jester jester is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Hong Kong
Posts: 47 jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 32 sec
Reputation Power: 9
Thanks for your help, FreeBSD! ^_^

I solve the problem by adding

<Directory "/xxx/xxx">
Options xxx
</Directory>

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > http:// cannot read directory?


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 | 
  
 

IBM developerWorks




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