Skip to content

Commit 779448f

Browse files
committed
Fix baseurl for local development
1 parent 123789d commit 779448f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dokuwiki/conf/local.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$conf['send404'] = 1;
2525
$conf['breadcrumbs'] = 0;
2626
$conf['youarehere'] = 1;
27-
$conf['baseurl'] = 'https://wiki.php.net';
27+
$conf['baseurl'] = getenv('web-wiki-development-setup-baseurl') ?: 'https://wiki.php.net';
2828
$conf['plugin']['smtp']['smtp_host'] = 'mailout.php.net';
2929
$conf['plugin']['smtp']['smtp_ssl'] = 'tls';
3030

httpd.conf

+3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99

1010
LogLevel warn
1111

12+
SetEnv web-wiki-development-setup-baseurl http://localhost:8080
1213
<Directory /var/www/html>
1314
Options +FollowSymLinks
1415
AllowOverride All
1516
Order allow,deny
1617
Allow from all
1718
RewriteEngine on
1819
RewriteBase /
20+
# For local development only
21+
RewriteRule ^shared - [L]
1922
RewriteRule ^lib - [L]
2023
RewriteRule ^doku.php - [L]
2124
RewriteRule ^feed.php - [L]

0 commit comments

Comments
 (0)