httpd trouble

Graham Cossey graham.cossey at gmail.com
Thu Mar 17 12:22:57 UTC 2005


<snip>
> >>>>>>>>>>>>>
> Add the following line to your config "if" you wish to be able to
> execute <?php ?> code embedded inside an HTML document.
> 
> find:
> 
> # If the AddEncoding directives above are commented-out, then you
> # probably should define those extensions to indicate media types:
> #
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
> 
> add:
> AddType application/x-httpd-php .html
> 
> should look like this when done:
> # If the AddEncoding directives above are commented-out, then you
> # probably should define those extensions to indicate media types:
> #
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
> AddType application/x-httpd-php .html
> <<<<<<<<<<<<

You should be aware that with this line in place all .html files will
be parsed by php which could slow things down dependant on traffic
volumes. To only send php scripted files to the php interpreter name
those file with an extension like .php (you can use whatever you like)
and use that in the AddType line.

Just a thought.

<snip>

-- 
Graham




More information about the fedora-list mailing list