|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 ! |
|
#2
|
|||
|
|||
|
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> |
|
#3
|
|||
|
|||
|
Thanks for your help, FreeBSD! ^_^
I solve the problem by adding <Directory "/xxx/xxx"> Options xxx </Directory> |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > http:// cannot read directory? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|