Changes

From Amahi Wiki
Jump to: navigation, search
108 bytes added ,  14:17, 27 March 2017
== Create a redirect from HDA to secured HDA ==
Modify /etc/httpd/conf.d/'''01-platform.conf''' and go down to the rewrite rules<pre><nowiki>nano 01-platform. conf</nowiki></pre>Below the last rewrite rule , just before the line "# this was only for FCGI" put above the following code.<location /> section, add:
<pre><nowiki>RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [R,L]</nowiki></pre>
This will automatically redirect requests from http://hda ((http://192.168.1.10) to https://hda (https://192.168.1.10)...
== Restart the Apache2 server ==
68

edits