...
To handle requests on each of these ports, 80, 443, and 9999, and redirect (actually rewrite) them properly, we will leverage the mod_rewrite.so module, so we need to enable it.On Windows installations In the httpd.conf file, uncomment the following two lines in httpd.conf.
Code Block |
---|
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule ssl_module/mod_ssl.so
|
Note |
---|
On Linux installations of up.time 7.2 and earlier, the mod_rewrite.so |
...
file is not bundled with up.time, so it is necessary to download |
...
it from the bottom of this article and copy it to the <uptime_dir>/apache/modules directory. Then, in httpd.conf, add the |
...
"LoadModule rewrite_module modules/mod_rewrite.so" line after "# LoadModule foo_module modules/mod_foo.so". If issues are experienced with the version of mod_rewrite.so attached, try creating a symlink to the mod_rewrite.so file provided by the Linux distribution instead. |
...
Code Block |
---|
LoadModule rewrite_module modules/mod_rewrite.so |
Finally, the last part is to add entries in httpd.conf that will rewrite the requests as HTTPS. At the bottom of the httpd.conf file, add these lines, changing <uptime_dir> to the directory of your up.time installation:
...