|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
httpd.conf and ForceType
The following problem under FreeBSD: I would like to make the server handle .htm files as if they were .php. There are several methods for this, but under FreeBSD none of them seems to work.
httpd.conf: <VirtualHost 199.239.248.88:80> SSLDisable ServerName woodlandsphuket.com ServerAdmin URL DocumentRoot /home/woodland/www/woodlandsphuket.com ScriptAlias /cgi-bin/ /home/woodland/www/cgi-bin/ User woodland Group woodland ServerAlias URL <Directory /home/woodland/www/cgi-bin> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> <Location /force> ForceType application/x-httpd-php </Location> </VirtualHost> I tried as well in .htaccess: <FilesMatch (*.htm|*)> ForceType application/x-httpd-php </FilesMatch> Any help with this problem would be #very# appreciated! Thanks, jts |
|
#2
|
||||
|
||||
|
Look for a line in your httpd.conf that looks something like this:
AddType application/x-httpd-php php php3 Tack on a htm to the end, so it looks like this: AddType application/x-httpd-php php htm Then stop and start apache and you should be set. ![]()
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > httpd.conf and ForceType |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|