This is the 14th day of my participation in the November Gwen Challenge. Check out the event details: The last Gwen Challenge 2021

Eat enough to write code

preface

It has been two weeks since XDM wrote the article last time. The reason is that I fell ill when I was on a business trip, and I was very anxious and confused these days, so I didn’t continue to share my study notes. In fact, I was still anxious two days ago. I don’t know what kind of state of mind you had when you just graduated a few months ago. It may also be my personal anxiety constitution. To get down to business, here’s a typical Nginx-related issue.

background

Product iteration upgrade, made some functional adjustments, the front part of the main adjustment is in the original basis on the new home page. Nginx 404 Not Found Nginx 404 Not Found

Thinking of the February

This time to see this problem don’t panic, because in the development environment before encountered this kind of situation, it was added a new page, finished packing directly on the mobile end check result, it found that the above problems, the first thought is not going to be the code, and then another think it just added a separate page, self-test can also normal jump, So eliminate code problems. You can locate the jump path to the page, because the development of the jump is directly:

this.$router.push({
          path: "/xntj".query: {
            way: this.topType,
          }
        });
Copy the code


var url = 'http://' + window.location.host + '/m-cases/xntj'
var routerSettings = {
    pushState: false.url: url,
    urlParams: {
       way: this.topType,
    }
};
mobile.app.router(routerSettings);
Copy the code

Local hops are routed through router.js, and corporate-encapsulated hops need to be configured through nginx.conf. You can then navigate to nginx.conf;

To solve

/ nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf/nginx.conf

./nginx -s reload
Copy the code