M
M
muhasa2019-07-10 13:04:15
Apache HTTP Server
muhasa, 2019-07-10 13:04:15

How to set up a subdomain, what am I doing wrong?

I bought a VDS, I want to set it up myself I
stuck it at the stage of creating subdomains
This is how the /etc/apache2/apache2.conf file looks like

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Then I made 2 copies of the 000-defaults.conf file, the contents of one of them are:
<VirtualHost *:80>
        ServerName tireplaces.musaevhs.info
        DocumentRoot /var/www/tireplaces
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

and so - the main virtual host (000-default) normally reflects the contents of the / var / www / html folder (it is configured there), but the subdomain does not want to be cut.
What did I forget or did wrong? ..
PS sudo a2ensite tireplaces.conf did by itself

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question