From: Colin Guthrie Date: Fri, 19 Apr 2013 12:28:19 +0000 (+0100) Subject: Allow usage in a subdir of a host. X-Git-Tag: v0.4.0~86 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/20ca4e9e509a111f8de0069feeac54e3b31098ee Allow usage in a subdir of a host. --- diff --git a/README.rst b/README.rst index ede03d0..0e8cadf 100644 --- a/README.rst +++ b/README.rst @@ -61,6 +61,12 @@ Installation Look at ``config.default.php`` for values that you may adjust. 5. Set your web server's document root to ``/path/to/phorkie/www/`` + Alternatively, you can add a symlink to the ``www`` folder into your + web server's existing document root tree (being careful to keep + main phorkie folder outside the document root for security purposes) + and ensure you set the ``baseurl`` config option appropriately. You + must also set the ``RewriteBase`` in the ``.htaccess`` file or adjust + the nginx configuration accordingly. 6. Open phorkie in your web browser diff --git a/data/config.default.php b/data/config.default.php index a589924..56ddc43 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -4,6 +4,7 @@ $GLOBALS['phorkie']['cfg'] = array( 'gitdir' => __DIR__ . '/../repos/git/', 'workdir' => __DIR__ . '/../repos/work/', 'tpl' => __DIR__ . '/templates/', + 'baseurl' => '/', 'css' => '', 'title' => 'phorkie', 'topbar' => '', diff --git a/data/config.php.dist b/data/config.php.dist index ced993f..77d2005 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -1,4 +1,5 @@ - + + - - - + + + {% if css %} {% endif %} {% block title %}{% endblock %} - {{title}} - - - + + + {% block meta %}{% endblock %} @@ -22,17 +23,17 @@