Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Kobus on August 05, 2005, 10:04:30 PM

Title: additional apache directives for single domain
Post by: Kobus on August 05, 2005, 10:04:30 PM
Afternoon everyone

I run PHPWS CMS and need to add a few additional  php_admin_value open_basedir directoves to the apache conf file for a single domain. How would I go about adding this to the httpd.conf file?

Thanks in advance

Kobus
Title: Re: additional apache directives for single domain
Post by: mrjhb3 on August 06, 2005, 03:08:50 AM
Quote from: "kbensch"
Afternoon everyone

I run PHPWS CMS and need to add a few additional  php_admin_value open_basedir directoves to the apache conf file for a single domain. How would I go about adding this to the httpd.conf file?

Thanks in advance

Kobus


By creating the necessary templates-custom files, re-expanding httpd.conf, check to make sure you settings are there, then restart e-smith-httpd.

JB
Title: additional apache directives for single domain
Post by: Kobus on August 07, 2005, 10:47:17 PM
Hi

Adding template fragments affects all 17 doamins. I only want to change 1.

Kobus
Title: additional apache directives for single domain
Post by: CharlieBrady on August 08, 2005, 12:39:55 AM
Quote from: "kbensch"

Adding template fragments affects all 17 doamins. I only want to change 1.


Your template fragment needs to be in the VirtualHosts subdirectory, and needs to check which virtual domain is being expanded, and only add text where you need it. Something like:

Code: [Select]

{
   $OUT = '';
   if ($virtualHost eq "one.you.care.about")
   {
       $OUT .= "stuff you want to add\n";
   }
}
Title: additional apache directives for single domain
Post by: Kobus on August 08, 2005, 08:03:55 AM
Thank you all for your help.

Thanks Charlie for the code. That sorted it.

Kobus