| | 390 | |
| | 391 | |
| | 392 | ====== Configuring apache web server ====== |
| | 393 | |
| | 394 | 1. For the file /etc/apache2/sites-available/default |
| | 395 | In the following we are assuming that <host> is the internal hostname or IP address of the machine running the login AM, and <port> is the IP port on which the service is running (default is 5052 for OMF 5.2 services). For example, forn internal IP 172.16.250.7 and port 5025 the <host>:<port> would be: 172.16.250.7:5052. |
| | 396 | |
| | 397 | ServerName <server_name> |
| | 398 | {{{ |
| | 399 | |
| | 400 | ProxyPass /status "http://<host>:<port>/public_html/" |
| | 401 | <Location /status> |
| | 402 | Order allow,deny |
| | 403 | Allow from all |
| | 404 | </Location> |
| | 405 | |
| | 406 | ProxyPass /userManagement "http://<host>:<port>/login/userManagement" |
| | 407 | <Location /userManagement> |
| | 408 | Order allow,deny |
| | 409 | Allow from all |
| | 410 | </Location> |
| | 411 | |
| | 412 | }}} |
| | 413 | |
| | 414 | Note: If you change baseURL and publicURL in login.yaml it is necessary to change corresponding values in apache default file. |
| | 415 | |
| | 416 | 2. For SSL services (in /etc/apache2/sites-available/default-ssl) we need: |
| | 417 | |
| | 418 | {{{ |
| | 419 | ProxyPass /schedule/ "http://<host>:<port>/login/ShowScheduler" |
| | 420 | <Location /schedule> |
| | 421 | Order allow,deny |
| | 422 | Allow from all |
| | 423 | </Location> |
| | 424 | |
| | 425 | ProxyPass /loginService/ http://<host>:<port>/login/ |
| | 426 | <Location /loginService> |
| | 427 | AllowOverride None |
| | 428 | order allow,deny |
| | 429 | allow from all |
| | 430 | </Location> |
| | 431 | <Proxy http://<host>:<port>/login/*> |
| | 432 | AllowOverride None |
| | 433 | order allow,deny |
| | 434 | allow from all |
| | 435 | </Proxy> |
| | 436 | }}} |