| Author |
apache and PHP problem with virtual hosts
|
|
| Jay Donnell 2004-04-15, 1:05 pm |
| This problem has me stumped. I'm running Apache (1.3) and php4 on a
freebsd server with virtual hosts setup in apache. When I go to
mydomain.com I see my php page prefectly fine. When I go to
www.mydomain.com It downloads the php code as a text file. Anyone have
an idea about why this is happening?
Jay
| |
| Karl Heinz Marbaise 2004-04-27, 2:37 pm |
| Hi Jay,
>
> This problem has me stumped. I'm running Apache (1.3) and php4 on a
> freebsd server with virtual hosts setup in apache. When I go to
> mydomain.com I see my php page prefectly fine. When I go to
> www.mydomain.com It downloads the php code as a text file. Anyone have
> an idea about why this is happening?
It seemed to me that you have a VirtualHost for www.mydomain.com
where you have put the correct AddType things in there but
you have the default configuration beyond the VirtualHost
where you don't have put the AddType things in theres....
You can solve the problem using an other ServerAlias for your
VirtualHost
ServerAlias mydomain.com
or you change the configuration in the way you don't have
a default configuration part but rather a virtual host..
Kind Regards
--
Jabba dabba dooohhh e-mail: khmarbaise@gmx.de
Auf wiedermailen. Internet: http://www.marbaise.org
Karl Heinz 7:-) http://www.kabanise.de
ICQ#: 135949029
| |
|
| Karl Heinz Marbaise wrote:
> It seemed to me that you have a VirtualHost for www.mydomain.com
> where you have put the correct AddType things in there but
> you have the default configuration beyond the VirtualHost
> where you don't have put the AddType things in theres....
>
> You can solve the problem using an other ServerAlias for your
> VirtualHost
>
> ServerAlias mydomain.com
> or you change the configuration in the way you don't have
> a default configuration part but rather a virtual host..
I'm having nearly the same problem myself right now. I posted my help
request with a Subject of "New Apache/PHP install problem." Any ideas
would be appreciated. My same httpd.conf worked fine with my old
installation. The conf from one of my new servers (with
apache/php/postgresql compiled the exact same way) also doesn't work.
Weird.
J
|
|
|
|