Re: httpd trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux