Jump to content

Apache 2.0.43, Php-4.3.0 and virtualhosts


kli

Recommended Posts

Hi there,

 

Just trying to convert my webserver from apache 1.3.27 to 2.0.43, but I ran in to some problems, hope somebody has an idea.

 

In apache 1.3.27 you are able to do the following:

 

<VirtualHost 1.2.3.4>

ServerAdmin you@your.domain

DocumentRoot /path/to/web/

ServerName web.your.domain

AddType application/x-httpd-php .htm .php .php3

php_value auto_prepend_file \"/path/to/files/prepend.inc\"

php_value auto_append_file \"/path/to/files/append.inc\"

</VirtualHost>

 

I have tried to put this in the 2.0.43 httpd.conf file, but it has no effect.

It works if I put the Addtype in the global configuration.

 

The reason for me to want to do it like this is that I want to be able to swich php on/off for the different domains running on the server, controlled by <virtualhost> or has this changed now ?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.