ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Wordpress Install - Page is trying to load unsafe script

    IT Discussion
    fedora 27 nginx wordpress
    4
    28
    4.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • black3dynamiteB
      black3dynamite
      last edited by

      Force SSL Plugin
      https://wordpress.org/plugins/wp-force-ssl/

      Administrator over SSL
      https://codex.wordpress.org/Administration_Over_SSL

      JaredBuschJ 1 Reply Last reply Reply Quote 2
      • JaredBuschJ
        JaredBusch @Obsolesce
        last edited by

        @tim_g said in Wordpress Install - Page is trying to load unsafe script:

        @jaredbusch said in Wordpress Install - Page is trying to load unsafe script:

        I used a plugin to fix ssl last time I I’d to do this.

        No idea what the plugin was anymore.

        This one?
        https://wordpress.org/plugins/ssl-insecure-content-fixer/

        Either this one or

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch @black3dynamite
          last edited by

          @black3dynamite said in Wordpress Install - Page is trying to load unsafe script:

          Force SSL Plugin
          https://wordpress.org/plugins/wp-force-ssl/

          This one

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch
            last edited by

            I recall both names. Not sure which one worked.

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce @JaredBusch
              last edited by

              @jaredbusch said in Wordpress Install - Page is trying to load unsafe script:

              I recall both names. Not sure which one worked.

              To force SSL you don't need any add-on.
              I don't use one for my WordPress sites anywhere.

              But I can see needing one to properly handle forwarding from a reverse proxy.

              I have never used WP behind a reverse proxy so who knows.

              JaredBuschJ 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce
                last edited by

                I'm going to set up an nginx reverse proxy sometime to see what exactly is going on.

                1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @Obsolesce
                  last edited by JaredBusch

                  @tim_g said in Wordpress Install - Page is trying to load unsafe script:

                  @jaredbusch said in Wordpress Install - Page is trying to load unsafe script:

                  I recall both names. Not sure which one worked.

                  To force SSL you don't need any add-on.
                  I don't use one for my WordPress sites anywhere.

                  But I can see needing one to properly handle forwarding from a reverse proxy.

                  I have never used WP behind a reverse proxy so who knows.

                  Correct, this is an issue when it is behind a proxy that is handling the SSL.

                  I would guess that if you setup WP to use a self signed cert and put that behind the proxy, it would work as you expect.

                  1 Reply Last reply Reply Quote 2
                  • NashBrydgesN
                    NashBrydges
                    last edited by

                    I'm going to have to try those solutions out when I'm back home.

                    1 Reply Last reply Reply Quote 0
                    • NashBrydgesN
                      NashBrydges
                      last edited by

                      I finally figured out where this install went wrong.

                      When running this command sudo -u apache wp core download I was getting this error:

                      Downloading WordPress 4.9.4 (en_US)...
                      Warning: Failed to create directory '/usr/share/httpd/.wp-cli/cache/': mkdir(): Permission denied.
                      

                      Once I manually created the folder and re-ran the commands right through to the end, everything worked as expected. Now the blog loads as a subfolder to the main site and doesn't have any issues with HTTPS warnings of any kind.

                      1 Reply Last reply Reply Quote 4
                      • black3dynamiteB
                        black3dynamite
                        last edited by

                        @NashBrydges
                        Change
                        CustomLog /var/log/access.log combined
                        to
                        CustomLog /var/log/httpd/access.log combined

                        NashBrydgesN 1 Reply Last reply Reply Quote 1
                        • NashBrydgesN
                          NashBrydges @black3dynamite
                          last edited by

                          @black3dynamite said in Wordpress Install - Page is trying to load unsafe script:

                          @NashBrydges
                          Change
                          CustomLog /var/log/access.log combined
                          to
                          CustomLog /var/log/httpd/access.log combined

                          Good catch. Thanks.

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 2 / 2
                          • First post
                            Last post