There's no option in the GUI, unfortunately.

I'm not sure if it's a default from Apache or BX, but you need to add this to the site's .include file (/etc/httpd/conf/vhosts/siteX.include)

<Directory "/home/.sites/XXX/siteY/web">
AllowOverride All
Options All
</Directory>

Do `ls -l /home/sites | grep www.yourdomain.com` to get the corresponding numbers for XXX and Y.

You could further limit the AllowOverride and Options directives you need, but this is what works for me since I'm the only siteadmin on my vhosts.

After this, you'll need to restart apache to put it into effect: `systemctl restart httpd`

Then you should be able to add rewrites (and more) in .htaccess

 - Brent

On 2019-09-24 12:15, Meaulnes Legler @ MailList wrote:
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@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx

_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx



_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx

_______________________________________________
Blueonyx mailing list
Blueonyx@mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx

Reply via email to