# Apache template variables

**URL:** <https://forum.virtualmin.com/t/apache-template-variables/45979>\
**Category:** Virtualmin\
**Created:** [June 5, 2013, 2:32pm UTC](https://forum.virtualmin.com/t/apache-template-variables/45979 "2013-06-05T14:32:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghislain](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@ghislain](https://forum.virtualmin.com/u/ghislain)\
**Post date:** [June 5, 2013, 2:32pm UTC](https://forum.virtualmin.com/t/apache-template-variables/45979/1 "2013-06-05T14:32:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Eric](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@Eric](https://forum.virtualmin.com/u/Eric)\
**Post date:** [June 8, 2013, 4:35am UTC](https://forum.virtualmin.com/t/apache-template-variables/45979/2 "2013-06-08T04:35:53Z")

</div>

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](http://www.virtualmin.com/documentation/id,template_variable_listing)

---

<div class="post-metadata">

**Author:** ![raistie](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/58f4c7/32.png) [@raistie](https://forum.virtualmin.com/u/raistie)\
**Post date:** [September 27, 2013, 7:27pm UTC](https://forum.virtualmin.com/t/apache-template-variables/45979/3 "2013-09-27T19:27:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ghislain](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@ghislain](https://forum.virtualmin.com/u/ghislain)\
**Post date:** [November 22, 2013, 9:19am UTC](https://forum.virtualmin.com/t/apache-template-variables/45979/4 "2013-11-22T09:19:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:58am UTC](https://forum.virtualmin.com/t/apache-template-variables/45979/5 "2020-04-30T05:58:06Z")

</div>

Closed on April 30, 2020, 5:58am UTC


