Koozali.org: home of the SME Server

additional apache directives for single domain

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
additional apache directives for single domain
« 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
Kobus............

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: additional apache directives for single domain
« Reply #1 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
......

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
additional apache directives for single domain
« Reply #2 on: August 07, 2005, 10:47:17 PM »
Hi

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

Kobus
Kobus............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
additional apache directives for single domain
« Reply #3 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";
   }
}

Offline Kobus

  • *****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
additional apache directives for single domain
« Reply #4 on: August 08, 2005, 08:03:55 AM »
Thank you all for your help.

Thanks Charlie for the code. That sorted it.

Kobus
Kobus............