4. Installation of Apache
Installing and configuring a webserver is a bit more complicated. The reason is, that
Apache2 is becoming more sophisticated, and therefore less suitable for simple webpages.
But Apache still is the standard. So here we go.
Installing is easy;
apt-get install apache2
4.1. Configure a simple website
What I basically did is put a file 000-default in
with the following content:
Deny from all
Options Indexes FollowSymLinks MultiViews
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /ljm/
ScriptAlias /cgi/ /home/www/cgi/
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
I also created the site:
chmod -R a+rx /home/www /home/www/html /home/www/cgi
I put a
with some happy message.
And that seemed to work.
4.2. Other webserver-stuff
If your webserver needs to display only static pages, this is enough. I wanted more.
First is webmail. I have my own mail server at home, so I want to be able to access
my mail via the Internet. So I use squirrelmail. It requires
php5, which is installed with apt-get.
Next is the posibility to display my photos. The simplest is
Simpleviewer There are other flashes on that site that look nice as well. I'll try them another time.