Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

[PHP3] [Q] Apache, PHP, and MIME types From: Tommy Williams (Tommy.Williams <email protected>)
Date: 07/31/98

I would like to set something up like this:

<Location /somewhere>
ForceType application/x-httpd-php3
</Location>

so that files can be named *.html, or whatever.

However, there might be images lying about in different places.

Is there some way in Apache (1.2.6 or 1.3.1) to get it partially override a
ForceType? Some way of saying "force all files to a particular MIME type
except those that end in .gif and .jpg"?

One way around, I suppose, would be to create an images or a graphics
subdirectory and do a ForceType there. But then .gif and .jpg (and .png and
whatever else) files will have to be separated into appropriate directories
of their own.

--
Tommy Williams
<mailto:Tommy.Williams <email protected>>
  <URL:http://www.mc.Vanderbilt.Edu/~tommy/>

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3