For example, for user test, the domain name of test is test.com
Effect:
The user uploads static files to ~/test.com, which is the user’s home directory and the directory with the same name as the domain name
The user changes the test.com A record to point to our server and can access
server { listen 80; server_name ~^(www\.)?(.+)$; root /home/lds/tmp/; }
This configuration can only be done if the directories with the same domain name are all under /home/lds/tmp.
Can all user home directories be set into one directory?
Actually what I want to do is
test1 user web directory is in ~/test1.com
The test2 user web directory is in ~/test2.com
in addition
Can all user home directories be set into one directory?
I don’t know if I understand it correctly
Isn’t this achieved
In addition, you can put all users' homes in the same directory, but please configure the correct permissions.