https://github.com/SamuliPeltonen/LinuxPalvelimetTehtavat/tree/main/Tehtava1

— Samuli Peltonen, 2021-01-27

Kotitehtäviä: https://osholopa.github.io/linux-palvelimet/index.html

— Oskari Holopainen, 2020-03-14

Apache Name Based Virtual Hosting

Written from memory

Create a website that
- shows on your front page
- you can edit as normal user, without sudo

$ sudo apt-get update
$ sudo apt-get -y install apache2
$ echo "Learned from Tero"|sudo tee /var/www/html/index.html

$ cd # go to your home dir
$ mkdir publicSite
$ cd publicSite/
$ nano index.html # "See you at TeroKarvinen.com" ctrl-X y enter

$ sudoedit /etc/apache2/sites-available/gogo.com.conf # ctrl-x y enter
$ cat /etc/apache2/sites-available/gogo.com.conf

<VirtualHost *:80>
ServerName gogo.com
ServerAlias www.gogo.com

DocumentRoot /home/xubuntu/publicSite/
<Directory /home/xubuntu/publicSite/>
Require all granted
</Directory>
</VirtualHost>

$ sudo a2ensite gogo.com.conf
$ sudo a2dissite 000-default.conf
$ apache2ctl configtest
$ sudo systemctl restart apache2

http://localhost/

Do you see your text "See you at TeroKarvinen.com"? Well done, you have a name based virtual host.

— Tero Karvinen, 2020-03-12

Ilkka Jylhä / Solinor kalvot
http://tero.jylha.eu

— Tero Karvinen, 2020-03-05

Linux Palvelimet - Harjoitus 5
Teemu Aittomäki

https://teemuaittomaki.wordpress.com/2020/03/04/harjoitus-5/

— Teemu Aittomäki, 2020-03-05

Kotitehtävä 4: https://linuxkurssilla.home.blog/2020/02/25/yksityinen-virtuaalipalvelin-virtual-private-server-vps/

— M. Laakso, 2020-02-27

Kotitehtävä: https://wordpress.com/view/linuxkurssilla.home.blog

— M.L., 2020-02-13

$ cat /etc/apache2/sites-available/monkeylovehat.com.conf

<VirtualHost *:80>
ServerName monkeylovehat.com
ServerAlias www.monkeylovehat.com

DocumentRoot "/home/xubuntu/publicSite/"

<Directory "/home/xubuntu/publicSite/">
require all granted
</Directory>
</VirtualHost>

$ sudo a2ensite monkeylovehat.com.conf ^C
$ sudo a2dissite 000-default.conf ^C

$ apache2ctl configtest

$ sudo systemctl restart apache2 ^C


— Tero Karvinen, 2020-02-06

https://ilpolinuxpalvelimet.wordpress.com/2020/02/04/harjoitus-2-lokien-analysointia-komentokehote-asennuksia-ja-ikava-ongelma-gon-asennuksessa-seka-ssh-yhteydessa/

— Ilpo Jokinen, 2020-02-06

https://jaanilinux.art.blog/2020/02/04/h2/

— qwe, 2020-02-06

Hello world!

— Tero Karvinen, 2020-02-03

Add comment