File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11################################################
22# ISPConfig General Apache Options
33################################################
4-
4+ ServerTokens ProductOnly
55ServerSignature Off
66
77
@@ -137,9 +137,10 @@ Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-know
137137 </tmpl_if>
138138</Directory>
139139
140+ <tmpl_if name='apache_version' op='<' value='2.4' format='version'>
140141NameVirtualHost *:80
141142NameVirtualHost *:443
142143<tmpl_loop name="ip_adresses">
143144NameVirtualHost {tmpl_var name="ip_address"}:{tmpl_var name="port"}
144145</tmpl_loop>
145-
146+ </tmpl_if>
Original file line number Diff line number Diff line change 44######################################################
55
66<tmpl_var name="vhost_port_listen"> Listen <tmpl_var name="vhost_port">
7- NameVirtualHost *:<tmpl_var name="vhost_port">
7+ <tmpl_if name='apache_version' op='<' value='2.4' format='version'> NameVirtualHost *:<tmpl_var name="vhost_port"></tmpl_if >
88
99<VirtualHost _default_:<tmpl_var name="vhost_port">>
1010 ServerAdmin webmaster@localhost
You can’t perform that action at this time.
0 commit comments