SID-02071: Multiple Wiki's in Apache virtual hosts - Configure Issue
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
ActivePerl-5.20.2.2001-MSWin32-x64-298913 |
| Category: |
CategoryInstallation |
Server OS: |
Windows 2012 R2 |
Last update: |
10 years ago |
I have 5 wiki's running as named virtual hosts on Apache for windows. The server seems to be running fine, as i can reach each of the virtual hosts by named URL, but for some reason i am not offered a bin/configure page for each wiki. I get the same bin/configure page served for all of the wikis no matter what i try.
I have a seperate
LocalLib.cfg file for each wiki and i am sure this is something to do with the virtual hosts, but i can't seem to figure it out.
Any help i can get would be much appreciated.
--
Ben Dale - 2015-06-08
Discussion and Answer
Let me check whether I understand you correctly:
- When you say you get the same
bin/configure page, does that mean that regardless of the host name you use in the URL you are redirected to the same host, or is it that though the URL hosts are different, you see the same content for configuration items (e.g. DataDir, which should surely be different for different wikis)?
- If it is the same host, check for redirection pitfalls:
mod_rewrite for shorter URLs, cookie based SSO-servers (like Wikipedia:Central_Authentication_Service
) with difficulties distinguishing your name based virtual hosts, proxy/reverse proxy servers which perform reverse DNS lookup. An indication would be that you always see the configuration page for the server's canonical DNS name.
- If it is the same content: Are you running a persistent interpreter (mod_perl)? In that case, I believe that you can't reliably run different Wikis on the same Apache: They share their Perl, and also their
@INC and their singletons like TWiki's configuration. Also check whether there's a "global" (i.e. outside of the virtual hosts) ScriptAlias directory, or different virtual hosts using the same bin directory for configure.
- How do you get separate
LocalLib.cfg files to come into effect? This file is located in TWiki's lib directory, together with TWiki's code. Do you have five complete copies of TWiki code for each of the hosts or some nifty extra lib directory for each of the hosts which contains only the config file? If the latter, perhaps it doesn't work as intended?
--
Harald Jörg - 2015-06-08
Harald,
The URl hosts are different, but i am getting the same content for configuration items.
I just checked and my HTTPD.conf file and i am calling the TWiki.conf file that contains the
ScriptAlias directory for the wiki that i am seeing the configuration content for. Can the script alias information be included in the virtual hosts information?
I do have 5 complete copies of TWiki, so nothing too complicated with the configuration i would have thought. My old TWiki server running 4.2.4 has almost the same configuration and seems to be working fine.
I appreciate your help with this.
Regards
Ben
--
Ben Dale - 2015-06-09
Harald,
Ok, so i found the issues and all seems to be working now.
I needed to add the include TWiki.conf to each virtual host seperately and move the directory information from the virtual hosts file to the Twiki.conf file for each wiki.
Now i can access the bin/configure for each wiki seperately and the information is correct for each wiki.
Thanks for your help, as you totally pointed me in the right direction.
Regards
Ben
--
Ben Dale - 2015-06-09
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Topic revision: r4 - 2015-06-09
- BenDale