Automated Proxy Setup
Here are some instructions as to how to do a quick and dirty MarkUs setup so that it’s accessible behind Apache httpd. Please don’t use it in production. It may provide some inspirations, though.
Here is a shell script, which does the heavy lifting of a proxied setup including basic authentication. This has been tested on Debian and Ubuntu. It might also work on some other distributions with some modifications. The necessary steps are as follows:
- cd to a clean checkout of MarkUs
- edit config/environment.rb such that it includes
config.action_controller.relative_url_root = “/markus” - edit setup_apache_auth_proxy.sh and update MARKUS_RAILS_ROOT so
that it points to your MarkUs checkout. - go to your MarkUs checkout and do ./script/server (the usual
thing)
Become root (e.g. $ sudo -s)
# chmod +x setup_apache_auth_proxy.sh
# ./setup_apache_auth_proxy.sh
Finally go to http://testhost.com/markus (It should ask for authentication; use username=markus_test password=test). You should see a standard MarkUs login screen now. Happy proxy testing/developing!