|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ForceType causes image-problems
I'm having some problems with the "ForceType" directive. When I use it, some of my .jpg-images gives some weird error-messages (surely because they're being parsed by PHP). When the ForceType is #:ed out the images work just fine.
I can't come up with a good solution to this problem, since I don't want to remove the ForceType. I was thinking of adding another directive to somehow remove the ForceType for the "/usr/local/www/somedir/img/"-dir since all the images are in there. A "UnForceType" directive should probably do the trick Any clues?WHAT I'M USING: <Directory "/usr/local/www/somedir/"> ForceType application/x-httpd-php </Directory> ERRORMESSAGE: Warning: Unexpected character in input: '\\' (ASCII=92) state=1 in /usr/local/www/somedir/img/2002_12.jpg on line 43 Warning: Unexpected character in input: '' (ASCII=3) state=1 in /usr/local/www/somedir/2002_12.jpg on line 43 Parse error: parse error in /usr/local/www/somedir/2002_12.jpg on line 43 UPDATE: The DefaultType seems to working in this particular case since the files I'm trying to force to be parsed by PHP is free of an extension. E.g. "http://domain.com/index/42" instead of "http://domain.com/index.php?somevar=somevalue". But it doesn't feel like the "right" way to go, since every file that doesn't have a respective, registerd mime-type gets parsed as php. Last edited by elysium : April 1st, 2002 at 04:45 PM. |
|
#2
|
|||
|
|||
|
>> A "UnForceType" directive should probably do the trick Any clues?
There's RemoveType, so just start here -> http://httpd.apache.org/docs/mod/mod_mime.html >> since I don't want to remove the ForceType You also can use DirectoryMatch directive. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > ForceType causes image-problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|