Hello,
I have created two local wikis, "enwiki" hosted on a database with the same name and "fawiki" likewise. I have used the following configs to config them both, and to be able to use centralauth for them. However, despite the use of wgUsePathInfo and other relevant configs, my urls are still getting shown as: http://en.localhost/w/index.php/Main_Page
Of course, I have enabled aliases in my apache configs for both en.localhost and fa.localhost: Alias /wiki /var/www/w/index.php
What am I missing here?
PS: The configs: ------------------- $wgShowExceptionDetails = true;
switch ($_SERVER["SERVER_NAME"]) { case "fa.localhost": $wgDBname = "fawiki"; $wgUsePathInfo = true; $wgScriptPath = '/w'; $wgArticlPath = '/wiki/$1'; $wgLanguageCode = "fa"; break; default: $wgDBname = "enwiki"; $wgUsePathInfo = true; $wgScriptPath = '/w'; $wgArticlPath = '/wiki/$1'; $wgLanguageCode = "en"; break; }
$wgLocalDatabases = array( 'enwiki','fawiki' ); $wgConf->wikis = $wgLocalDatabases; $wgConf->suffixes = array( 'wiki' ); $wgConf->localVHosts = array( 'localhost' ); list( $site, $lang ) = $wgConf->siteFromDB( $wgDBname ); $params = array( 'site' => $site, 'lang' => $lang, 'wiki' => $wgDBname ); $wgConf->settings = array( 'wgServer' => array( 'default' => 'http://$lang.localhost' ), 'wgSitename' => array( 'fawiki' => 'ویکی فارسی', 'default' => 'English Wiki' ), 'wgLanguageCode' => array( '$lang' ), 'wgLocalInterwiki' => array( '$lang' ), 'wgSecretKey' => array( 'fawiki' => "5985cc63dbb366e3837cde14f2a6a36b91aebc2242fd2f4ffcbb5a4cd0601590", 'enwiki' => "ce352ddd112c5d9665cf726868e2f2cfdd6ea0b77bf95510686bc1f1822e4e40", ), ); $wgConf->extractAllGlobals( $wgDBname, $site, $params, array() );
On Tue, Oct 28, 2008 at 8:44 AM, Huji huji.huji@gmail.com wrote:
$wgArticlPath = '/wiki/$1';
. . . $wgArticlPath = '/wiki/$1';
Probably you need to spell these correctly.
Yeah, and I actually moved this to the $wgConf array of configurations. I should help IAlex for that, of course :)
Bottom line: My bad!
On 10/28/08, Aryeh Gregor <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com> wrote:
On Tue, Oct 28, 2008 at 8:44 AM, Huji huji.huji@gmail.com wrote:
$wgArticlPath = '/wiki/$1';
. . . $wgArticlPath = '/wiki/$1';
Probably you need to spell these correctly.
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org