How to configure redirect to https in the virtual appliance

Discussion forum about Anuko Time Tracker
Post Reply
admin
Posts: 546
Joined: Fri Oct 08, 2004 9:46 pm
Location: Vancouver, Canada
Contact:

How to configure redirect to https in the virtual appliance

Post by admin » Thu May 12, 2011 1:18 am

Here is just a bit of useful info that may be useful to virtual appliance users.

Is there an easy way to tell the Anuko appliance to redirect all HTTP traffic requests to HTTPS?

To redirect HTTP requests to HTTPS add these lines at the end of /etc/httpd/conf/httpd.conf file in the appliance:

Code: Select all

RewriteEngine on
RewriteCond %{REQUEST_URI} !^/$
RewriteRule ^(.*) https://timetracker.example.com$1 [R=permanent]
Replace timetracker.example.com with your time tracker URL. Reload apache config with this command:

Code: Select all

service httpd graceful
Hope the above will help someone.

Post Reply