Home > OS >  High marks for help for help, the eldest brother for help.
High marks for help for help, the eldest brother for help.

Time:09-16

How do I get the following results:
Automatically when clicking on a link to a blank page and the pop-up window, make the homemade exe program can be downloaded,

CodePudding user response:

This problem is not using nginx services to build your website file sharing server
First step: write configuration files (www.conf)
Nginx module function: ngx_http_autoindex_module

Syntax: autoindex on | off;
Default:
Autoindex off;
Context: HTTP server, the location

Server {
Listen, 80;
Server_name www.oldboy.com;
The location/{
Root/HTML/WWW.
Auth_basic "oldboy - sz - 01";
Auth_basic_user_file password/htpasswd;
autoindex on; - open nginx site directory index function
}
PS: 1. To the home page files to delete
2. Mime. Role types media resource type file
File extension information resource, information directly to see when they access data
File without the extension of the information resources, direct download resources when they visit

Web page to catalog data, Chinese garbled words, how to solve:
The location/{
Root/HTML/WWW.
# index index. HTML;
Auth_basic "oldboy - sz - 01";
Auth_basic_user_file password/htpasswd;
autoindex on;
Charset utf-8; - modify the directory structure problems in Chinese garbled
} [/code]
  • Related