Apache template variables

4 posts / 0 new
Last post
#1 Wed, 06/05/2013 - 09:32
ghislain

Apache template variables

hello,

I wanted to know if there is a variable available on the apache template that would be different on http vs https because i have duplicate issues in the configuration (in FastCgiExternalServer) the only thing i can think that could differentiate is to add something like

${HTTP_PORT}

to the template , any other idea to acheive this as this variable seems to not exist.

best regards, Ghislain.

Fri, 06/07/2013 - 23:35
andreychek

Howdy,

You can test on the variable ${SSL} to find if SSL is enabled.

You can see a list of template variables here:

http://www.virtualmin.com/documentation/id,template_variable_listing

Fri, 11/22/2013 - 03:19 (Reply to #2)
ghislain

yes but having ${ssl} cannot be used to change the way virtualmin create the vhost configuration has it use the very same template for both ssl and non ssl part of the apache virtualhost.

i mean i cannot put a conditional part for the ssl part of the vhost has $SSL is at 1 all the time not only when parsing the template for the SSL part of the vhost.

so $SSL cannot be used.

Ghislain.

Fri, 09/27/2013 - 14:27
raistie

I have this problem. Ssl variable returns 1 for both. Random5 also returns the same 5 numbers

Topic locked