84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
The web root directory is in root "/phpstudy/www/xxx";
root "/phpstudy/www/xxx";
But the static directory in the program is www/static
That is to say, domain/www/static/xxxx.jpg must be accessed when requesting
How to hide www?
闭关修行中......
Configuration
location /phpstudy/static/ { alias /usr/local/nginx/html/phpstudy/www/static/; }
Use alias to map a virtual directory.
alias
Visit address http://[ip]/phpstudy/static/a.txt
http://[ip]/phpstudy/static/a.txt
Configuration
Use
alias
to map a virtual directory.Visit address
http://[ip]/phpstudy/static/a.txt