Re: Apache2 & PHP4
| From: | Dries Verachtert | Date: | Fri, 20 Dec 2002 12:42:54 +0000 |
| Subject: | Re: Apache2 & PHP4 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128979@lists.php.net to get a copy of this message | ||
Hello,
I use the following in my VirtualHost example:
<VirtualHost a.b.c.d:80>
DocumentRoot /a/b/c/d/
ServerName a.be
<Files *.html>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
</VirtualHost>
I don't have AddType's for .html.
I also still got the following:
<Directory "/a/b/c/d/">
AllowOverride All
</Directory>
This was needed to make the AddType in .htaccess files work in apache
1.3 if i remember correctly. It's possible you only need a
'AllowOverride FileInfo' to make it work.
This works without problems for me on RH8 with the apache/php from RH8.
Kind regards,
Dries Verachtert
On Fri, 2002-12-20 at 10:32, Chase Urich wrote:
> OK, so I've spent the last 2 or 3 hours looking on the net for this.
> Can anyone tell me the proper way (with Apache 2.0.40) to instruct
> apache to process .htm and .html files?
>
> I've tried:
> In /etc/httpd/conf/httpd.conf ::
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .html
> And also in /etc/httpd/conf.d/php.conf ::
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .html
>
> Neither appears to work or affect anything at all. I have also tried:
> <Files *.html>
> SetOutputFilter PHP
> SetInputFilter PHP
> </Files>
> ... in the php.conf file, but my guess is that this wouldn't work unless
> something like the AddType points to PHP to begin with.
>
> Can anyone give me some ideas? I'm just fine with Apache 1.3, but RH8
> ships with Apache2 and I thought I'd try it ...
>
> Chase
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php