M
M
Mikhail Abroskin2018-03-13 10:23:31
Apache HTTP Server
Mikhail Abroskin, 2018-03-13 10:23:31

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

1 answer(s)
T
TijAY, 2018-04-02
@TijAY

you can bring the lines of the vhost config, without them there is nothing to discuss, because you are digging correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question