apt install apache2

vi /etc/apache2/sites-available/virtual.host.conf

<VirtualHost *:80>
    ServerName 192.168.1.31
    DocumentRoot /home/shy/public_html
</virtualhost>

a2ensite virtual.host
service apache2 restart




関連 2019-06-29 13:29:47