httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daryl Williams <da...@weblane.com>
Subject config question regarding <Location>
Date Thu, 22 Aug 2002 14:40:28 GMT
folks,

i have a  mod_perl Apache::Registry script running from
<Location>/foo</Location>, which appears to work ok,  however
i am also reying to stash other program related data, forms, etc.
under the same namespace, i.e. /foo/forms, which also seems
to be working (for regular .html files) except for the one reason
why i am wring to the list.

i would like to be able to use php or other interpreters to generate
some simple dynamic content. however when i try to load the php
file, apache thinks i want to download the file. the file is recognized
correctly by apache as "application/x-httpd-php" in the download box.
btw, php does work correctly under the documnet_root.

following is the config info. your help is greatly appreciated.
rtfms welcomed, especially with a hint to it's location.

Alias /foo/forms   "/foo/path/to/forms"
Alias /foo

<Location  /foo>
  SetHandler          perl-script
  perlHandler        Apache::Registry
  perlSendHeader  On
  DirectoryIndex  welcome
  Options             +ExecCGI
  PerlSetEnv        STYLESHEET /foo/lib/style.css
</Location>

<Location "/helpdesk/forms/">
SetHandler default-handler
AddType application/x-httpd-php .phtml
</Location>

tia,

daryl



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message