Changes

From SME Server
Jump to navigationJump to search
934 bytes added ,  01:56, 19 February 2010
Added template fragment for proxy reverse - not finished
Line 45: Line 45:     
Now when ever the ''jtime'' user logs in they will be placed in the directory of the binary admin tools, with the correct environment variables set.
 
Now when ever the ''jtime'' user logs in they will be placed in the directory of the binary admin tools, with the correct environment variables set.
 +
====SME Server Specifics====
 +
Create a template fragment to ProxyPass the web server
 +
 +
Login as root
 +
mkdir -p /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
 +
{
 +
    # 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===
 
The newly installed Timesheet application will be available at
 
The newly installed Timesheet application will be available at

Navigation menu