summaryrefslogtreecommitdiffstats
path: root/wiki-preview.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'wiki-preview.mdwn')
-rw-r--r--wiki-preview.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/wiki-preview.mdwn b/wiki-preview.mdwn
index 7e6df82..71cf7d1 100644
--- a/wiki-preview.mdwn
+++ b/wiki-preview.mdwn
@@ -48,6 +48,27 @@ You can also create an alias for to refresh the preview command.
$ alias fripost-wiki-preview-refresh='ikiwiki -setup /home/gustav/lab-wiki/fripost-wiki.setup -refresh'
+
+Public www locations (userdir)
+------------------
+
+For to be able to access `http://localhost/~user` the "userdir"
+functionality is needed. For Nginx, put the following in e.g.
+*/etc/nginx/sites-available/localhost*:
+
+```
+server {
+ location ~ ^/~(.+?)(/.*)?$ {
+ alias /home/$1/public_html$2;
+ index index.html index.htm
+ autoindex on;
+ }
+}
+```
+
+Relative paths
+--------------
+
Many links on the Fripost wiki are absolute. That means that you
sometimes will not be able to follow homepage page and wiki page links
between your local preview wiki. For testing purposes, that can