We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it soon. Read more about it: https://vestacp.com/docs/vesta-2-development
[GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
Any idea on how to force adminer to work only on HTTPS?
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
I'm also interested !
I thought a simple .htaccess like this :
... on /usr/share/phpmyadmin/ (because I didn't changed the original path) should do the work, but no...
I thought a simple .htaccess like this :
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>
Re: [GUIDE] How to replace phpMyAdmin by Adminer in Ubuntu 16.04 NGINX php-fpm
.htaccess doens't work because the webserver that serves adminer is nginx.
I've found another way, you have modify the file:
Adding these lines at line #3:
Then restart the webserver.
I've found another way, you have modify the file:
Code: Select all
/etc/nginx/conf.d/phpmyadmin.inc
Code: Select all
if ($server_port = 80) {
rewrite ^ https://$host$request_uri permanent;
}