View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Mon Aug 22, 2022 1:36 pm Post subject: Apache, https rewrite not working (RESOLVED) |
|
|
I have a couple of HTTPS rewrite rules set up, they've been set up for over 10 years now...one stopped working, but the other still works.
This one still works: Code: | <Directory "/var/www/www.internal.lan/htdocs/phpmyadmin/">
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*?) https://%{SERVER_NAME}:8043%{REQUEST_URI} [R,L]
</Directory> |
This one mysteriously stopped working: Code: | <Directory "/var/www/www.internal.lan/htdocs/roundcube/">
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*?) https://%{SERVER_NAME}:8043%{REQUEST_URI} [R,L]
</Directory> |
I don't get it, they are identical except for the directory.
Last edited by Akaihiryuu on Mon Aug 22, 2022 3:16 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Akaihiryuu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Mon Aug 22, 2022 3:16 pm Post subject: |
|
|
Resolved...I found you can't rewrite HTTPS rules for Roundcube, you have to do it in the Roundcube configuration itself. I had that option set in the past and forgot about it, and thought it was the rewrite rule when it never did anything. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|