Manual talk:Short URL/wiki.example.com/Page title--Subdomain using Lighttpd

From mediawiki.org

How to have short url with example.com/Page_Title and Lighttpd?[edit]

Hi, my wiki is installed in the root dir. What would be the correct syntax to use in lighttpd to use short urls?

Explanation is not explicit[edit]

I cannot understand the description. In the LocalSettings.php

$wgScriptPath = '/w';        # Path to the actual files. This should already be there
$wgArticlePath = '/$1';  # Virtual path. This directory MUST be different from the one used in $wgScriptPath
$wgUsePathInfo = false; # To get special links like history or edit work

should I copypast the three lines above "as is", or values '/w' and '/$1' should be replaced to some things, specific for my setting?

As for lighttpd.conf , I cannot locate this file. Should I create it? Where should I place it? Domitori (talk) 17:11, 6 April 2013 (UTC)Reply

These rules are bad anyways you might as well just use http://shorturls.redwerks.org/ to get your config. I you use that tool you can just replace the section of config since it'll have the right paths automatically put in. And lighttpd.conf is your webserver's config file. If you're running a linux system you'll usually find it somewhere like /etc/lighttpd. Daniel Friesen (Dantman) (talk) 17:25, 6 April 2013 (UTC)Reply


BUG REPORT[edit]

This configuration works with lighttpd up until lighttpd 1.4.40 and mediawiki 1.27.0. Upgrading lighttpd to 1.4.40 starts a pathological behavior where mediawiki serves up an infinite redirect loop. Contact me at https://aninix.net/irc/ for details and reproducability. ~DarkFeather