Answer the question
In order to leave comments, you need to log in
How to configure apache2 to work with subdomains?
Hello colleagues!
I'm setting up my vds-ik and ran into a problem how to set up subdomains to the main domain.
The
essence of this is the site.ru domain, the main directory for it is
/var/www/site.ru/html
this www.site.ru should naturally refer to /var/www/site.ru/html
Che something I just haven’t tried, and tried with mod_vhost_alias and with mod_rewrite, which doesn’t work, I’m already confused at the end what to ((
LAMP was installed separately on the server, PHP is connected via fpm in the config using ProxyPassMatch
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question