Topic on Manual talk:Short URL/Apache

Multiple MW installations on one Apache

2
Pdr3112 (talkcontribs)

I have multiple MW installations on a single Apache Webserver. The steps given here mention the short URLs considering that there is only one MW installation per Webserver.

Anyone got an idea as to what to do do to make multiple clean URLs on multiple installations but on same Webserver.

eg: http://<generic URL>/<specific installation 1>/Page_name_X http://<generic URL>/<specific installation 2>/Page_name_Y

For security and company policy reasons cannot share the exact installations or paths as it is not live yet on Internet.


MW: 1.18.2 Apache HTTPD: 2.4 PHP: 5.3.5 Postgres: 9.2

Dantman (talkcontribs)

Configure your wiki one at a time, the technique you use will vary depending on how the directories intersect.

If your multiple wiki are setup like this:

You won't need to do anything special at all. .htaccess files only need to be high enough up in the path that they are above both the /index.php and /wiki/ paths. So you'll have /departmentA/.htaccess and /departmentB/.htaccess and wont need to do anything.

If your multiple wiki aresetp like this:

Then the wiki will share a common root since for a .htaccess to apply to both /departmentA_wiki and /departmentA it would need to be in the root .htaccess. But it won't be too hard, the rules that setup your short urls don't intersect so all you'll do is put the config you get for both wiki into the same /.htaccess file.

The only tweaks you'll want to make to what you get are that you'll only need one RewriteEngine On and you might want to remove the RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L] line that redirects the site root to the wiki's mainpage.