Virtualhost apache2 näitel: Difference between revisions
From ICO wiki
Jump to navigationJump to search
Created page with '<pre> /etc/hosts 192.168.56.101 www.planet.zz 192.168.56.101 sales.planet.zz </pre> <source lang="bash"> ping www.planet.zz ping sales.planet.zz apt-get update …' |
No edit summary |
||
Line 19: | Line 19: | ||
apt-get install apache2 | apt-get install apache2 | ||
mkdir -p /var/www/www.planet.zz | |||
mkdir -p /var/www/sales.planet.zz | |||
cp /var/www/index.html /var/www/www.planet.zz | |||
cp /var/www/index.html /var/www/sales.planet.zz | |||
</source> | </source> |
Revision as of 12:36, 5 March 2013
/etc/hosts 192.168.56.101 www.planet.zz 192.168.56.101 sales.planet.zz
ping www.planet.zz
ping sales.planet.zz
apt-get update
apt-get dist-upgrade
apt-get install apache2
mkdir -p /var/www/www.planet.zz
mkdir -p /var/www/sales.planet.zz
cp /var/www/index.html /var/www/www.planet.zz
cp /var/www/index.html /var/www/sales.planet.zz