Home > Operation and Maintenance > Nginx > How to deploy static resources using nginx

How to deploy static resources using nginx

王林
Release: 2021-02-25 21:57:16
forward
4850 people have browsed it

How to deploy static resources using nginx

nginx steps to deploy static resources:

Step 1: It is first recommended to use the ftp tool

in EditPlus to install, and then click File->FTP ->FTPUPLOAD->Settings->add. Then configure:

How to deploy static resources using nginx

#This is just for the convenience of editing the file content in Linux.

Step 2: Put the static resources into the nginx directory: For example, mine is index:

How to deploy static resources using nginx

Then modify the nginx.conf file:

http->server->location->root is index.

Step 3: Restart nginx

./nginx -s reload
Copy after login

Step 4: Test access:

http://192.168.40.128/
Copy after login

Cannot find the path to see if the name is written incorrectly.

Okay, change it and try again.

Then ok.  

When modifying the file in EditPlus, hold ctrl s and click yes, then click ok.

Related recommendations: nginx tutorial

The above is the detailed content of How to deploy static resources using nginx. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template