[web-wiki] master: Fix baseurl for local development
| From: | Niklas Keller | Date: | Tue, 28 Mar 2023 20:53:26 +0000 |
| Subject: | [web-wiki] master: Fix baseurl for local development | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30811@lists.php.net to get a copy of this message | ||
Author: Niklas Keller (kelunik)
Date: 2023-03-28T22:32:54+02:00
Commit: https://github.com/php/web-wiki/commit/779448fb44300d37d59dbec81741acf0f312b683
Raw diff: https://github.com/php/web-wiki/commit/779448fb44300d37d59dbec81741acf0f312b683.diff
Fix baseurl for local development
Changed paths:
M dokuwiki/conf/local.php
M httpd.conf
Diff:
diff --git a/dokuwiki/conf/local.php b/dokuwiki/conf/local.php
index 2cf3d69b..20a0f1dc 100755
--- a/dokuwiki/conf/local.php
+++ b/dokuwiki/conf/local.php
@@ -24,7 +24,7 @@
$conf['send404'] = 1;
$conf['breadcrumbs'] = 0;
$conf['youarehere'] = 1;
-$conf['baseurl'] = 'https://wiki.php.net';
+$conf['baseurl'] = getenv('web-wiki-development-setup-baseurl') ?: 'https://wiki.php.net';
$conf['plugin']['smtp']['smtp_host'] = 'mailout.php.net';
$conf['plugin']['smtp']['smtp_ssl'] = 'tls';
diff --git a/httpd.conf b/httpd.conf
index f4f23f24..5ab83b3a 100644
--- a/httpd.conf
+++ b/httpd.conf
@@ -9,6 +9,7 @@
LogLevel warn
+ SetEnv web-wiki-development-setup-baseurl http://localhost:8080
<Directory /var/www/html>
Options +FollowSymLinks
AllowOverride All
@@ -16,6 +17,8 @@
Allow from all
RewriteEngine on
RewriteBase /
+ # For local development only
+ RewriteRule ^shared - [L]
RewriteRule ^lib - [L]
RewriteRule ^doku.php - [L]
RewriteRule ^feed.php - [L]