Answer the question
In order to leave comments, you need to log in
Subdomains not working
There is an example.com domain connected via a2ensite:
<VirtualHost *:80>
ServerName example.com
ServerAdmin [email protected]
DocumentRoot /home/inetbug/www/example.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/inetbug/www/example.com/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain.example.com
ServerAdmin [email protected]
DocumentRoot /home/inetbug/www/subdomain
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/inetbug/www/subdomain/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
DNS returns IP for subdomain? It is checked by a banal subdomain ping.
Quite an obvious thing - they forgot to reload Apache.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question