aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apache/sites/nowayforward_human.conf.tpl1
-rw-r--r--views/archive/index.php4
2 files changed, 2 insertions, 3 deletions
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl
index e94e13e..72ed808 100644
--- a/apache/sites/nowayforward_human.conf.tpl
+++ b/apache/sites/nowayforward_human.conf.tpl
@@ -1,6 +1,7 @@
<VirtualHost *:8000>
ServerName localhost
DocumentRoot "${REPOSITORY}/views"
+ Alias /archives "${ARCHIVES_DIR}"
<FilesMatch \.php$>
SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
diff --git a/views/archive/index.php b/views/archive/index.php
index e5146a3..f96c34f 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -5,9 +5,7 @@
?>
<?php if ($page !== null): ?>
- <iframe>
- <!-- /archives/$page->WID -->
- </iframe>
+ <iframe src="<?php echo "/archives/{$page->WID}" ?>"></iframe>
<?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?>
<section>
<?php echo $page->Date ?>