RE: [PHP] Re: NameVirtualHost breaks PHP
| From: | David Freeman | Date: | Sun, 28 Apr 2002 21:58:14 +0000 |
| Subject: | RE: [PHP] Re: NameVirtualHost breaks PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95030@lists.php.net to get a copy of this message | ||
On 28 Apr 2002 at 16:11, Greg Blakely wrote:
> > Can you indicate Apache settings regarding php and virtualhosts?
>
> In the "main" server configuration area, I have:
[etc]
> ### and then, under the "VirtualHost" area, I have:
>
> <VirtualHost *>
> Port 80
> AddType application/x-httpd-php .php4 .php3 .phtml .php
> AddType application/x-httpd-php-source .phps
> ServerAdmin xxxxxx@xxxxxxx.com
> DocumentRoot /home/tcrc/www/forum
> ServerName forum.tcrconline.com
> ErrorLog /home/tcrc/logs/error_log
> CustomLog /home/tcrc/logs/access_log combined
> </VirtualHost>
get rid of the AddType lines in your virtual host definition. You
don't need them. Settings in your main config area will be inherited
by your virtual host config.
When you change this stuff, don't forget to restart apache for the
changes to take effect.
CYA, Dave