Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 11th, 2005, 05:23 PM
richie richie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 richie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m
Reputation Power: 0
forceType not working..

I'm trying to configure apache to surrender processing to a php script if the url contains a given directory.

Adding this

<Location /local>
ForceType application/x-httpd-php
</Location>

to httpd.conf tells apache to treat a file called "local" as a php script.

Hence, http://mydomainName.com/local/sub/dir/

should cause apache to call the file "local", which contains php scripts.

Everything works well for me, if I call
http://mydomainName.com/local

But if I try
http://mydomainName.com/local/
or
http://mydomainName.com/local/sub/
or
http://mydomainName.com/local/sub/dir/

basically, anything in front of
http://mydomainName.com/local

I get

Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
Error 404

Does anybody know why this is happening?

The article that discusses this is:

http://www.devarticles.com/c/a/Apache/Using-ForceType-For-Nicer-Page-URLs/

My setup:
Apache/2.0.40
RedHat 9
PHP 4.2.2

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > forceType not working..


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
Stay green...Green IT