Welcome, Guest
Please Login or Register.
Lost Password?
Re: custom fields usable in httpd.conf as replacable params (1 viewing)
Post Reply

TOPIC: Re: custom fields usable in httpd.conf as replacable params

#1777
GeorgeVieira (User)
Posts: 7
graphgraph
custom fields usable in httpd.conf as replacable params 2006/04/17 23:09  
I'm using jRun unfortunately and need to pass in some parameters like proxy ports it's using etc.

I was hoping Custom Fields could handle that for me but it appears to be just saved field data per domain.

Is there a way to take input on creating new domains and setting them in configuartions like ${DOM} ${HOME} etc.?

I want to create a custom field like ${PROXYPORT} and add this to my httpd.conf, which i tried and (wishful thinking) it didn't support it.
  The administrator has disabled public write access.
#1792
Joe (Admin)
Posts: 4082
graph
Re: custom fields usable in httpd.conf as replacable params 2006/04/19 01:31  
Hey George,

You're not alone in wanting this kind of capability. And you're not alone in thinking, at first glance, that custom fields would do it. Custom Fields were implemented for a specific purpose quite a while back, which didn't require the fields to become variables. That's probably not the way it should have gone, but I don't know that it's safe to change the semantics now...there ought to be a way to do what you want, however. It would make Server Templates vastly more powerful and flexible.

I'll file a wish in the bug-tracker and we'll see if Jamie can see an easy/safe way to make this possible. I think it would be a very useful trick.
  The administrator has disabled public write access.
#1793
Joe (Admin)
Posts: 4082
graph
Re: custom fields usable in httpd.conf as replacable params 2006/04/19 01:35  
And here's the wish in the tracker, so you can keep an eye on it:

http://www.virtualmin.com/bug-tracker/bug?bug%5fnumber=366
  The administrator has disabled public write access.
#1795
JamieCameron (Admin)
Posts: 361
graphgraph
Re: custom fields usable in httpd.conf as replacable params 2006/04/19 01:43  
This is already possible using custom fields. In a template, they can be referenced as FIELD_XXX where XXX is the custom field name, and in pre/post scripts they can be found in the VIRTUALSERVER_FIELD_XXX environment variables..
  The administrator has disabled public write access.
#1808
ChrisBlackwell (User)
Posts: 120
graphgraph
Re: custom fields usable in httpd.conf as replacable params 2006/04/20 03:53  
What about boolean fields?

I'd like to be able to create a section in my vhost conf that can be included or excluded based on the value of a custom field (for rudimentary coldfusion support)

This would require some sort of if-field/elseif-field/else syntax, like the ones included for the built in variables.

I've been hoping for something like this for a while now :)

Chris
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.