Join the community today
Become a Member

Nginx Nginx is forcing SSL

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jcat, Aug 4, 2015.

Tags:
  1. jcat

    jcat Member

    74
    15
    8
    Jun 21, 2015
    Ratings:
    +31
    Local Time:
    5:43 AM
    Hello,

    I have a domain that uses SSL but only for a subfolder. The main site is a WP site that has a bunch of embedded videos that do not use SSL so we need to keep the root of the domain non SSL.

    the vhost looks like

    server {
    server_name domain.com www.domain.com;
    listen 80;
    listen 443 ssl spdy;

    I am not forcing SSL, only allowing the site to be loaded using SSL if you specify https. I've ensured WordPress siteurl is http not https

    It seems like centmin may be some how forcing SSL since SSL is detected? Is that even possible
     
  2. rdan

    rdan Premium Member Premium Member

    4,308
    1,044
    113
    May 25, 2014
    Ratings:
    +1,504
    Local Time:
    5:43 PM
    Mainline
    10.2
    That's because of this config:
    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";

    You can remove it.
     
    • Informative Informative x 1
..