[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache2 virtual host



On Mon, Feb 03, 2020 at 07:42:12AM +0000, Andy Smith wrote:
Does calling it as:

# /usr/sbin/a2ensite ???

work?

root@penelope:/usr/sbin# /usr/sbin/a2ensite
Your choices are: 000-default default-ssl domain1.com domain2.com
Which site(s) do you want to enable (wildcards ok)?
domain1.com
Enabling site domain1.com.
To activate the new configuration, you need to run:
 systemctl reload apache2
 root@penelope:/usr/sbin# /usr/sbin/a2ensite domain2.com
 Enabling site domain2.com.
 To activate the new configuration, you need to run:
   systemctl reload apache2
   root@penelope:/usr/sbin# systemctl reload apache2
   Job for apache2.service failed.
   See "systemctl status apache2.service" and "journalctl -xe" for
   details.
   root@penelope:/usr/sbin#

Reply to: