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
Just put the projects in the directory of the workpress site. It is the directory where wp-login.php exists.
alias can meet your needs, such as
Then when accessing
www.xxx.com/projects/demo.html
, you don’t go to the location specified by root, but /home/html/projects