httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Luoma <luo...@peak.org>
Subject cannot get <Directory or <FilesMatch or <Location to deliver my ForceType
Date Thu, 04 Jul 2002 03:02:05 GMT
    
Hello folks.

Been through the manual via google, no luck so far  Here is what I am 
trying to do:

I want all files in /scripts/ (or its sub-folders) to be delivered as 
plain text.  Right now the only file in there ends with .sh and is 
delivered as application/x-sh

Here is what I have tried:

<Directory /scripts>
    ForceType text/plain
</Directory>

result: 500 internal service error (hence: 500)

Then:
<Directory /full/path/to/scripts/>
    ForceType text/plain
</Directory>

result: 500

Then:
<FilesMatch "^/scripts/">
    ForceType text/plain
</FilesMatch>

result: still delivered as x-sh

Then:
<FilesMatch "^scripts/">
    ForceType text/plain
</FilesMatch>

result: still delivered as x-sh

Then:
<Location "/scripts">
    ForceType text/plain
</Location>

result: 500

As far as I can tell from the examples/manuals I am finding, any of 
these should work.  Am I missing something obvious or what else should I 
try?

Thanks!

TjL







---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message