httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harrell, Roger" <>
Subject [users@httpd] ForceType directive - dynamic pages and URLs
Date Thu, 12 Feb 2004 22:59:26 GMT
In previous versions of Apache I have used the ForceType directive under a
<Location> or <Files> container to enable URLS with no special characters
for dynamically generated pages. example in the access.conf file I would
<Location /scriptfile>
ForceType application/x-httpd-php

Then I would have a file "scriptfile" in my document root that was a PHP
script. IF someone requested:

The "scriptfile" script would run and generate the proper page. 

The same thing worked in a .htaccess file with
<Files scriptfile>
ForceType application/x-httpd-php

Now I can't seem to get it to work at all. The ForceType seems to work when
I request

but if I request 
I get a page not found error.

How do I do this in Apache 2.x?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message