Friday, September 19, 2014

Force Using https Instead of http Ubuntu 14.04

The main idea for this forcing is redirect your http://yourdomain.com to https://yourdomain.com. This tutorial use apache web server. To do this, follow this step:
  1. Open your web server configuration
  2. nano /etc/apache2/sites-available/000-default.conf
  3. Add this line before </VirtualHost>
  4. Redirect permanent / https://yourdomain.com
  5. Save and restart your apache
  6. service apache2 restart

Sumber:
https://wiki.apache.org/httpd/RedirectSSL

1 comments:

Post a Comment