Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Utworzenie katalogu oraz pliku index.html z zawartością witryny.

Code Block
titleapt
mkdirmkdir /var/www/mojastrona
echo SerwerA > /var/www/mojastrona/index.html # Dla serwera A
echo SerwerA > /var/www/mojastrona/index.html # Dla serwera B

Utworzenie pliku konfiguracyjnego witryny. 

apt
Code Block
title
touch  /etc/apache2/sites-enabled/strona.domena.pl.conf
mcedit  /etc/apache2/sites-enabled/strona.domena.pl.conf

<VirtualHost *:80>
DocumentRoot /var/www/mojastrona

ServerName www.origanum-48.man.poznan.pl
ServerAlias origanum-48.man.poznan.pl

ServerAdmin admin@test.pl
</VirtualHost>

...