GithubHelp home page GithubHelp logo

Reinstall Error about serverpilot-letsencrypt HOT 17 OPEN

lesaff avatar lesaff commented on June 30, 2024
Reinstall Error

from serverpilot-letsencrypt.

Comments (17)

sinand avatar sinand commented on June 30, 2024 1

you should disable firewall from serverpilot, you can install another one from console later.

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@sinand It works, reinstall is successfull. But, on the Google Chrome "secure" is not shown yet when i go https url.

from serverpilot-letsencrypt.

lesaff avatar lesaff commented on June 30, 2024

@bekircem, Google Chrome is notorious for caching SSL. You might want to test your site on different browser (if available). If not, try clearing browser history on your Chrome.

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@lesaff not shown Opera Browser, IE and mobile.

Also i can not use force HTTPS. When i add codes to htaccess it gives me error. "ERR_TOO_MANY_REDIRECTS"
Could it be related to that?

This is the site I'm working on. You can check it.

from serverpilot-letsencrypt.

lesaff avatar lesaff commented on June 30, 2024

Looks like there's an htaccess rule that keeps redirecting the site to http://

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@lesaff I'm still working on it so i delete codes on htaccess. But when i add it, it gives me "Too Many Redirects" error.

from serverpilot-letsencrypt.

lesaff avatar lesaff commented on June 30, 2024

Is there any other redirect rule somewhere in your htaccess that forces http?

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@lesaff Only Wordpress defaults codes. Also i use Cloudflare but Cloudflare's SSL is not activated and there is no page rules.

`# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

END WordPress`

from serverpilot-letsencrypt.

lesaff avatar lesaff commented on June 30, 2024

I am not familiar with WP Supercache. Try turning it off or clearing the cache. Also, set your Cloudflare to dev mode for now. Here's your HTTP header info.

screen shot 2017-02-15 at 3 51 58 pm

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

Cloudflare dev mode for a long time, i clear cache. But nothing is change.

from serverpilot-letsencrypt.

oviliz avatar oviliz commented on June 30, 2024

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@oviliz I check it again,

Status: Development Mode

Caching for this website has been disabled.
Expires in 02:22:23

from serverpilot-letsencrypt.

lesaff avatar lesaff commented on June 30, 2024

@bekircem, as soon as you can find what's redirecting your site traffic to http:// you should be able to get your https running.

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@lesaff I can't find because i have not change any settings on serverside and htaccess. It is default serverpilot server and serverpilot's force http settings but doesnt work. Pretty odd.

from serverpilot-letsencrypt.

oviliz avatar oviliz commented on June 30, 2024

@bekircem Would you cat your content of your Nginx website config file in /etc/nginx-sp/vhosts.d/yourwebsiteapp.conf?

from serverpilot-letsencrypt.

bekircem avatar bekircem commented on June 30, 2024

@oviliz

server {
    listen       80;
    listen       [::]:80;
    server_name
        server-*****
        *****.com
        www.*****com
      ;

    root   /srv/users/serverpilot/apps/*****/public;

    access_log  /srv/users/serverpilot/log/*****/*****_nginx.access.log  main;
    error_log  /srv/users/serverpilot/log/*****/*****_nginx.error.log;

    proxy_set_header    Host              $host;
    proxy_set_header    X-Real-IP         $remote_addr;
    proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;

    include /etc/nginx-sp/vhosts.d/*****.d/*.nonssl_conf;
    include /etc/nginx-sp/vhosts.d/*****.d/*.conf;
}

from serverpilot-letsencrypt.

oviliz avatar oviliz commented on June 30, 2024

Sorry, I'm not using this script and now I've seen that apparently generates an extra separated *.ssl.conf for your app.

If that's the case, just make sure that it writes something similar to this (not sure where the script stores the SSL files):

server {
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name
        *****.com
        www.*****com
      ;

    ssl_certificate_key      ssl/*****.key;
    ssl_certificate          ssl/*****.combined_crt;

    root   /srv/users/serverpilot/apps/*****/public;

    access_log  /srv/users/serverpilot/log/*****/*****_nginx.access_ssl.log  main;
    error_log  /srv/users/serverpilot/log/*****/*****_nginx.error_ssl.log;

    proxy_set_header    Host              $host;
    proxy_set_header    X-Real-IP         $remote_addr;
    proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header    X-Forwarded-SSL   on;
    proxy_set_header    X-Forwarded-Proto $scheme;

    include /etc/nginx-sp/vhosts.d/*****.d/*.ssl_conf;
    include /etc/nginx-sp/vhosts.d/*****.d/*.conf;
}

from serverpilot-letsencrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.