Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Redirect http to https (phpmyadmin)

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
ivobyte
Posts: 4
Joined: Mon Mar 21, 2016 2:52 pm

Redirect http to https (phpmyadmin)

Post by ivobyte » Mon Mar 28, 2016 7:53 pm

I'd like to redirect all requests from http://mydomain.com/phpmyadmin to https://mydomain.com/phpmyadmin. I know that before phpmyadmin 4.6 there's an option to force ssl via phpma config files. At the moment I have older version than 4.6 but for the future I need some other solution instead of the force ssl via config files.

When I tried to set "rewrite ^ https://mydomain.com$request_uri? permanent;" under /phpmyadmin location line I got "too many redirects" in Chrome.

I use nginx + php-fpm.

EDIT: I solved my problem by adding "return 301 https://$server_name$request_uri;" to my nginx config.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Redirect http to https (phpmyadmin)

Post by skurudo » Tue Mar 29, 2016 7:16 am

solved by adding "return 301 https://$server_name$request_uri;" to my nginx config
ok, closed.
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password