farms:advanced
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
farms:advanced [2013-11-28 17:30] – JimmyL | farms:advanced [2022-04-21 16:56] (current) – [Disabling access to the farmer] 92.175.109.225 | ||
---|---|---|---|
Line 15: | Line 15: | ||
<file php> | <file php> | ||
$config_cascade[' | $config_cascade[' | ||
- | $config_cascade[' | + | $config_cascade[' |
</ | </ | ||
Line 33: | Line 33: | ||
at the end of '' | at the end of '' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | coucou c'est moi le hacker | ||
+ | ===== Central user management ===== | ||
+ | |||
+ | If some or all of your animals shall share the users you can do that not just by using the same external authentication but also with the default user management of DokuWiki by setting the path to the user list to the same location at the end of '' | ||
+ | |||
+ | <code php> | ||
+ | $config_cascade[' | ||
+ | ' | ||
+ | ); | ||
+ | </ | ||
+ | |||
+ | If you want to do that just for some animals you can of course simply add a condition based on the value of '' | ||
===== Flexible .htaccess-based setups ===== | ===== Flexible .htaccess-based setups ===== | ||
Line 83: | Line 99: | ||
The '' | The '' | ||
- | ===== Running | + | ===== Running |
- | This is when you set up your farm on a backend server (e.g. http:// | + | This is when you set up your farm on a backend server (e.g. http:// |
Firstly set up the farm on the backend as per the [[: | Firstly set up the farm on the backend as per the [[: | ||
Line 99: | Line 115: | ||
* ''/ | * ''/ | ||
- | Using the .htaccess type of setup, I then set up ''/ | + | On the backend server my wiki about bears (once fully setup) will be available at the following address: http:// |
+ | |||
+ | However, on the frontend server I want to present my wiki with the following address (notice I've chosen to drop the ' | ||
+ | |||
+ | Using the .htaccess type of setup, I set up ''/ | ||
<code apache .htaccess> | <code apache .htaccess> | ||
Line 109: | Line 129: | ||
</ | </ | ||
- | And under ''/ | + | Under ''/ |
- | <code php php> | + | <code php local.protected.php> |
<?php | <?php | ||
/** | /** | ||
Line 124: | Line 144: | ||
</ | </ | ||
- | On the backend server my wiki about bears will now be available at the following address: | + | Therefore I use [[http:// |
- | + | ||
- | http:// | + | |
- | + | ||
- | However, on the frontend server I want to present my wiki in the following form: | + | |
- | + | ||
- | http:// | + | |
- | + | ||
- | Therefore I use [[http:// | + | |
<code apache httpd.conf> | <code apache httpd.conf> | ||
< | < | ||
ProxyPass http:// | ProxyPass http:// | ||
- | ProxyPassReverse http://111.22.33.44/ | + | ProxyPassReverse http://11.22.33.44/ |
</ | </ | ||
</ | </ | ||
- | This means that any animals in my farm will always be reverse proxied | + | This means that any animals in my farm will always be reverse proxied |
This works very well until you perform certain actions (e.g. login, logout, saving edits etc.) Due to the fact that the DokuWiki engine does a redirect at these points, the end-user' | This works very well until you perform certain actions (e.g. login, logout, saving edits etc.) Due to the fact that the DokuWiki engine does a redirect at these points, the end-user' | ||
Line 149: | Line 161: | ||
Of course there is no page at this location on the backend server and the result is a HTTP 404 Page Not Found error message in the user's browser. | Of course there is no page at this location on the backend server and the result is a HTTP 404 Page Not Found error message in the user's browser. | ||
- | The remedy is to use [[http:// | + | The remedy is to use [[http:// |
<code apache httpd.conf> | <code apache httpd.conf> | ||
< | < | ||
ProxyPass http:// | ProxyPass http:// | ||
- | ProxyPassReverse http://111.22.33.44/ | + | ProxyPassReverse http://11.22.33.44/ |
Header edit Location ^http:// | Header edit Location ^http:// | ||
</ | </ |
farms/advanced.1385656221.txt.gz · Last modified: 2013-11-28 17:30 by JimmyL