[BlueOnyx:23265] Re: redirect to https

Meaulnes Legler @ MailList bluelist at waveweb.ch
Tue Sep 24 12:15:31 -05 2019


thanks Brent!

yeah I tried several .htaccess configurations, but always got the 500 Internal Server Error error...

with your approch, /var/log/httpd/error_log reports:

/home/.sites/<path_to_site>/web/.htaccess: Options not allowed here

same with AllowOverride All, for instance.

I'm a bit scared to go into the site's Apache configuration in /etc/httpd/conf/vhosts...

Any other idea? I thought there is an option to click in the GUI?

Thank you and best regards

(ツ) Meaulnes Legler
Zurich, Switzerland.
+41¦0 44 260-1660

On 24.09.19 17:49, Brent Epp wrote:
> You can achieve this quite simply with an .htaccess in the document root:
>
> Options +FollowSymLinks
> RewriteEngine on
> RewriteBase /
> RewriteCond %{HTTPS} off
> RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
>
> This requires mod_rewrite for Apache, which I believe is standard with BlueOnyx.
>
>  - Brent
>
> On 2019-09-24 06:14, Meaulnes Legler @ MailList wrote:
>> hello
>>
>> the Let's Encrypt feature is really cool and simple, https://mysite.tld comes up right away.
>>
>> what I'm missing is the automatic redirect from http:// to https://... If one enters http://mysite.tld it stays in the insecure protocol instead of changing to https://mysite.tld
>>
>> how can I achieve this?
>>
>> Thank you and best regards
>>
>> (ツ) Meaulnes Legler
>> Zurich, Switzerland.
>> +41¦0 44 260-1660
>>
>>
>>
>>
>> _______________________________________________
>> Blueonyx mailing list
>> Blueonyx at mail.blueonyx.it
>> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
>





More information about the Blueonyx mailing list