You have three options to get a HTTP authentication for JOC:
- Configure ./config/scheduler.xml
- Configure an Apache and use it as a proxy
- Configure the Jetty plugin
Configure ./config/scheduler.xml
Add the http.authentication element into the ./config/scheduler.xml.
<http_server> <http_directory path="$\{SCHEDULER_DATA\}/" url_path="/scheduler_data/"/> <http_directory path="$\{SCHEDULER_HOME\}/" url_path="/scheduler_home/"/> <http.authentication> <http.users> <http.user name="admin" password_md5="21232F297A57A5A743894A0E4A801FC3"/> </http.users> </http.authentication> </http_server>
You can use JOE to configure user name and password for the authentication by the following steps:
- Open the ./config/scheduler.xml in JOE via Ctrl+O
- Goto HTTPServer->HTTP Authtication
- Enter User Name and Password
- Click to the Encrypt button
- Click to the Apply button
- Save the configuration via Ctrl+S
Configure an Apache and use it as a proxy
Look at "Running the JOC behind an Apache Proxy" for more details
Configure the Jetty plugin
Look at "How to run JobScheduler with Jetty" for more details