ubuntu18にapache2
sudo apt-get install apache2
もうこれだけでapache起動しとる…
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
もうこれだけでapache起動しとる…
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