Changes

Jump to navigation Jump to search
1,372 bytes added ,  07:39, 20 February 2010
added alternative method using custom template fragment and db commands
Line 5: Line 5:     
I will revise the Howto & add it here when time permits
 
I will revise the Howto & add it here when time permits
 +
 +
====Alternative method using custom template and db commands====
 +
 +
Here is an alternative method based on this forum thread http://forums.contribs.org/index.php/topic,31772.new.html#new
 +
 +
At a command prompt do the following:
 +
cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
 +
 +
Edit the custom template fragment:
 +
pico -w /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
 +
 +
It should contain the following code:
 +
$OUT .= "\n";
 +
$OUT .= "#------------------------------------------------------------\n";
 +
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
 +
$OUT .= "#------------------------------------------------------------\n";
 +
$OUT .= "\n";
 +
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
 +
## custom code addition
 +
        if($properties{'SSLRequireSSL'})
 +
        {
 +
        if($properties{'SSLRequireSSL'} eq 'on')
 +
            {
 +
            $OUT.="    SSLRequireSSL\n";
 +
            }
 +
        }
 +
## / custom code addition
 +
 +
Save & exit:
 +
Ctrl c
 +
Ctrl x
 +
 +
Then for each ibay you wish to enable secure https access for do:
 +
db accounts setprop ibayname SSLRequireSSL on
 +
(where ibayname is the name of the applicable ibay)
 +
 +
Follow the above with:
 +
expand-template /etc/httpd/conf/httpd.conf
 +
sv t /service/httpd-e-smith
    
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
624

edits

Navigation menu