BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- Subject: [Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- From: richard.pieri at gmail.com (Rich Pieri)
- Date: Tue, 21 Mar 2023 11:56:58 -0400
RHEL 9.1 if it matters.
Here's the configuration:
# Any request to root will be redirected to landing page
RewriteRule ^/$ /landingpage/index.html [R,L]
# Any request to any context will be redirected to HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]
When I point my browser at http://myserver/ it redirects to
https://myserver/landingpage.html as expected. But when I point my
browser at https://myserver/ it does not redirect to the landing page
but instead displays the Apache test page.
Can anyone tell me what I'm missing here?
Thanks.
--
\m/ (--) \m/
- Follow-Ups:
- [Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- Prev by Date: [Discuss] Boston Linux VIRTUAL Meeting , re, minder, tomorrow, Wednesday, March 15, 2023 - Tinkering With Cryptography
- Next by Date: [Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- Previous by thread: [Discuss] Boston Linux VIRTUAL Meeting , re, minder, tomorrow, Wednesday, March 15, 2023 - Tinkering With Cryptography
- Next by thread: [Discuss] Trying to figure out Apache HTTP to HTTPS redirect
- Index(es):
