Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
Posted: Sat Apr 18, 2020 2:50 pm
Any idea on how to force adminer to work only on HTTPS?
Community Forum
http://forum.vestacp.com/
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$
RewriteRule ^ https://%1%{REQUEST_URI} [NE,L,R=301]
</IfModule>
Code: Select all
/etc/nginx/conf.d/phpmyadmin.inc
Code: Select all
if ($server_port = 80) {
rewrite ^ https://$host$request_uri permanent;
}