I am using the following tag
<VirtualHost *:80 *:443>
ServerName blog.mydomain.com
ServerAlias blog
to create a virtual host. I've put the ServerName as my subdomain which is blog. However, i'm trying to figure out a way to add www.blog. aswell in the same line rather than having to create a completely new virtual host.
Is there a way for this to be done?
If each virtual host has its own log, the limit is likely 64 due to file descriptor limits.
Apache allows multiple server Aliases
<VirtualHost *:80>
...
ServerName blog.mydomain.com
ServerAlias www.blog.com
ServerAlias blog
ServerAlias add-as-many-as-you-want
...
</VirtualHost>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With