os/linux/ Apache2Httpd


See /web/apache2 for general apache2 stuff.

Mod Rewrite on Ubuntu

On Ubuntu Server, rewrite is disabled by default. (On Xampp, it is enabled by default.)

See here Basically you need

sudo sudo a2enmod rewrite

then in e.g. /etc/apache2/sites-available/000-default.conf you add

<VirtualHost pt1:80>
...
  <Directory /var/www/pt1>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
  </Directory>
</VirtualHost>

where for example my local copy of purple tree is on my Lan at http://pt1/

Then you need to

sudo systemctl apache2 restart

So you can have a Purple Tree Wiki v1 on your Lan for personal note taking, without worrying about sync'ing. Not quite as full featured as Obsidian, but tiny and very hackable so far as adding features is concerned.