www: Support subdir local mounting

Makes testing a lot easier without virtual hosts or a
dedicated web server configuration...
This commit is contained in:
Andy Williams 2015-04-30 22:24:59 +01:00
parent 7b0045a0e4
commit 6d84a2f0e9
2 changed files with 9 additions and 5 deletions

4
README
View File

@ -23,6 +23,10 @@ www-content dir from the public_html/data dir like:
ln -s /path/to/www-content public_html/data/www-content
as an alternative.
If you want to load the website at a subdirectory you can add the config
option as follows to the local.php file you just created:
$conf['basedir'] = '/subdir';
The first time you run your local webserver and go there, you may get
permission denied problems. You may have to either make your www tree

View File

@ -1,8 +1,8 @@
<li><a href="/start">Main</a></li>
<li><a href="/about">About</a></li>
<li><a href="/download">Download</a></li>
<li><a href="/contact">Contact</a></li>
<li><a href="/docs">Docs</a></li>
<li><a href="<?= wl('start') ?>">Main</a></li>
<li><a href="<?= wl('about') ?>">About</a></li>
<li><a href="<?= wl('download') ?>">Download</a></li>
<li><a href="<?= wl('contact') ?>">Contact</a></li>
<li><a href="<?= wl('docs') ?>">Docs</a></li>
<li><a href="https://phab.enlightenment.org/phame/live/3">News</a></li>
<li><a href="https://phab.enlightenment.org/phame/live/1">Blog</a></li>
<li><a href="https://phab.enlightenment.org/">Devel</a></li>