Line 54:
Line 54:
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts
Create and edit a new file ''28journyxProxyPass'' with the following content
Create and edit a new file ''28journyxProxyPass'' with the following content
−
{
−
# vim: ft=perl:
−
−
$haveSSL = (exists ${modSSL}{status} and ${modSSL}{status} eq "enabled") ? 'yes' : 'no';
−
−
$OUT = '';
−
if ((${'journyx'}{'status'} || 'disabled') eq 'enabled'){
−
−
if (($port eq "80") && ($haveSSL eq 'yes')){
−
$OUT .= " RewriteRule ^/journyx(/.*|\$) https://%{HTTP_HOST}/journyx\$1 [L,R]\n";
−
}
−
else{
−
$OUT .= " ProxyPass /journyx http://127.0.0.1:${'journyx'}{TCPPort}/journyx\n";
−
$OUT .= " ProxyPassReverse /journyx http://127.0.0.1:${'journyx'}{TCPPort}/phpki\n";
−
}
−
}
−
}
===Running===
===Running===