There is a server running Apache. A new folder is created for the new user. Is it possible to configure Apache so that it will be transferred from the corresponding subdomain to the user's folder, and no changes in Apache settings will be required? For example, with

address.user.server.ru 

will throw on

 /home/user/address/www 
  • I'm afraid that will not work. Need to edit configs. - gecube
  • There are a number of instructions on how to do this, and not one: Apache: Automatic subdomains. The rest can be found in "Apache: Automatic subdomains" in Yandex / Google. - Sergey

1 answer 1

If I understand the question correctly, then mod_vhost_alias will go for this purpose.

This module creates dynamically generated virtual hosts by allowing IP addresses and / or Hostes: the HTTP request header will be used as part of the path to determine which files to serve.