Tag: OpenResty
-
Post Views: 22 1. In a container built based on nginx:alpine, a URL response 404 needs to edit the configuration of nginx to make it respond to 200. as shown in Figure 1 2. After editing the configuration of nginx, you need to reload. Execute the following commands. as shown in Figure 2 3. After reloading, the URL response is…
-
Post Views: 18 1. Reference:In Laravle 6, simulate a route requesting a resource file, and the data is fetched from the database . Request 200 in the local environment. as shown in Figure 1 2. In the production environment, the response is 404 not found (openresty, server: cloudflare). as shown in Figure 2 3. Check the Nginx request log to…
-
Post Views: 16 1,https://object-master.local/robots.txt, response 404. as shown in Figure 1 2, but,https://object.local/robots.txt, the response 200. as shown in Figure 2 3. The only difference between these 2 URLs is -master . Run: tasklist /fi “imagename eq nginx.exe” . View the nginx process running in the background. There are 4. In theory, there should only be 2 of them. and…
-
Post Views: 13 1. Request an HTTPS URL in OpenResty and report an error: Unable to get local issuer certificate. as shown in Figure 1 2. Reference URL:https://github.com/ledgetech/lua-resty-http/issues/68. client:request_uri(url, { ssl_verify = False, }). 3. Edit the request client code, add ssl_verify = False when initiated a request in lua-resty-http. as shown in Figure 2 4. Request an HTTPS URL…