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

    WordPress behind NGINX Reverse Proxy issues

    IT Discussion
    wordpress nginx
    2
    10
    1.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.
    • B
      bnrstnr
      last edited by

      WordPress install following @Dashrender's guide here. Everything works correctly when I connect directly to the WP server using the IP address, but as soon as I access it via its FQDN, reverse proxied with a separate NGINX server, I get some odd formatting and what appears to be no CSS.

      https://i.imgur.com/SfdbC9h.png

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Are you also adding SSL at this point, or only adding the reverse proxy?

        B 1 Reply Last reply Reply Quote 0
        • B
          bnrstnr @scottalanmiller
          last edited by bnrstnr

          @scottalanmiller I'm sorry, I misunderstood your question, I'm adding the proxy and the SSL, the certs are on the NGINX server

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            Why did you do all that install? Installing WordPress is a one liner 😉 You want the WP-CLI libraries for management purposes. And since you have them, installing is only this...

            wp core download; wp core config --dbname=dbname --dbuser=dbuser --dbpass='mysecret' --dbhost=localhost; wp db create ; wp core install --url=mysite.com --title="My Title" --admin_user="admin" --admin_email="[email protected]"
            
            B 1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Keep that command handy, because likely you will want to install WordPress many times on the same server. This way it's just one line and done, that's all that you need to make new sites over and over again.

              1 Reply Last reply Reply Quote 0
              • B
                bnrstnr @scottalanmiller
                last edited by

                @scottalanmiller :pensive_face: that was the latest install guide here

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @bnrstnr
                  last edited by

                  @bnrstnr said in WordPress behind NGINX Reverse Proxy issues:

                  @scottalanmiller I'm sorry, I misunderstood your question, I'm adding the proxy and the SSL, the certs are on the NGINX server

                  That's the issue. Your site is not prepped for SSL. Have you changed the URL of WP to point to https instead of http? Have you added an SSL plugin? I use Easy-SSL, I think.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @bnrstnr
                    last edited by

                    @bnrstnr said in WordPress behind NGINX Reverse Proxy issues:

                    @scottalanmiller :pensive_face: that was the latest install guide here

                    https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli

                    B 1 Reply Last reply Reply Quote 1
                    • B
                      bnrstnr @scottalanmiller
                      last edited by

                      @scottalanmiller said in WordPress behind NGINX Reverse Proxy issues:

                      https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli

                      Doh, somehow I missed this.

                      scottalanmillerS 1 Reply Last reply Reply Quote 1
                      • scottalanmillerS
                        scottalanmiller @bnrstnr
                        last edited by

                        @bnrstnr said in WordPress behind NGINX Reverse Proxy issues:

                        @scottalanmiller said in WordPress behind NGINX Reverse Proxy issues:

                        https://mangolassi.it/topic/13062/install-a-basic-wordpress-site-with-wp-cli

                        Doh, somehow I missed this.

                        And this one.... 🙂

                        https://mangolassi.it/topic/16084/installing-fedora-27-lamp-stack-plus-wordpress/

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