Trace: hostapd redirect_http

Redirect http to https apache

Tested on Debian.

Modify /etc/apache2/sites-enabled/000-default.conf:

        RewriteEngine On
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
        #ServerAdmin webmaster@localhost
        #DocumentRoot /var/www/html

References

redirect_http.txt · Last modified: 2019/01/17 17:44
Public Domain Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain