With the previous rewrite rule, the client is redirected to
https://localhost:8001. Use %{SERVER_NAME} instead of localhost
to keep the host name in the redirected URL.
---
contrib/wok.conf.apache | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/wok.conf.apache b/contrib/wok.conf.apache
index c7e650ee..b4093ec7 100644
--- a/contrib/wok.conf.apache
+++ b/contrib/wok.conf.apache
@@ -30,5 +30,5 @@ Listen 8000
TransferLog /var/log/apache2/access_log
RewriteEngine On
- RewriteRule ^/(.*)$
https://localhost:8001/$1 [R]
+ RewriteRule ^/(.*)$ https://%{SERVER_NAME}:8001/$1 [R]
</VirtualHost>
--
2.12.2