During development, testing or learning, you need to load server resources. You can use HTTP tools to simulate server loading resources, such as HFS: download address of HFS tool

You can also use nginx to emulate a local Http server:

Nginx(Engine X) is a high-performance HTTP and reverse proxy Web server that also provides IMAP/POP3/SMTP services.

Specific use method:

1. Download the nginx

Nginx download address

2. Configure the server

Add the following configuration code under nginx.conf in the nginx.conf folder.

Set the access address to localhost/hotfix and access the Project@Hoxfix folder on disk F.

That is, open localhost/hotfix in a browser and access the files in the Project@Hoxfix folder.

location /hotfix
{
    alias F:\Workspace\Unity3D\Project@Hoxfix;
    allow all;
    autoindex on;
}
Copy the code

3. Double-click nginx to start

4. Enter localhost/hotfix in the browser

Project@Hoxfix folder:

Browser view:

Use localhost/hotfix/ServerInfo. Download the XML file