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

How to deploy static resources using nginx

王林
王林forward
2021-02-25 21:57:164847browse

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

Step 4: Test access:

http://192.168.40.128/

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!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete
Previous article:Why is nginx so fast?Next article:Why is nginx so fast?