Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache, https rewrite not working (RESOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Mon Aug 22, 2022 1:36 pm    Post subject: Apache, https rewrite not working (RESOLVED) Reply with quote

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
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Mon Aug 22, 2022 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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