For example, the domain name of my wordpress site is www.xxx.com. How can I create a folder on the vps such as projects, put a demo.html file in it, and also reference ../css/all.css? Such a file allows you to access www.xxx.com/projects/demo.html by entering the URL
给我你的怀抱2017-05-16 17:26:00
Just put the projects in the directory of the workpress site. It is the directory where wp-login.php exists.
習慣沉默2017-05-16 17:26:00
alias can meet your needs, such as
location /projects/ {
alias /home/html/projects/;
}
Then when accessing www.xxx.com/projects/demo.html
, you don’t go to the location specified by root, but /home/html/projects