| 107 | | /etc/apache2/sites-available/default |
| 108 | | |
| 109 | | !ServerName <server_name> |
| 110 | | |
| 111 | | !ProxyPass /status/orbit "http://<host>:<port>/public_html/" |
| 112 | | |
| 113 | | !ProxyPass /userManagement "http://<host>:<port>/login/userManagement" |
| 114 | | |
| | 108 | We need to configure all the proxy URLs in the open (i.e. in /etc/apache2/sites-available/default) |
| | 109 | |
| | 110 | 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. |
| | 111 | |
| | 112 | {{{ |
| | 113 | ServerName <server_name> |
| | 114 | ... |
| | 115 | |
| | 116 | ProxyPass /status "http://<host>:<port>/public_html/" |
| | 117 | <Location /status> |
| | 118 | Order allow,deny |
| | 119 | Allow from all |
| | 120 | </Location> |
| | 121 | |
| | 122 | ProxyPass /userManagement "http://<host>:<port>/login/userManagement" |
| | 123 | <Location /userManagement> |
| | 124 | Order allow,deny |
| | 125 | Allow from all |
| | 126 | </Location> |
| | 127 | ... |
| | 128 | }}} |
| 118 | | /etc/apache2/sites-available/default-ssl |
| 119 | | |
| 120 | | !ProxyPass /schedule/ http://<host>:<port>/login/ShowScheduler |
| 121 | | |
| 122 | | !ProxyPass /loginService/ http://<host>:<port>/login/ |
| 123 | | |
| 124 | | <Proxy http://<host>:5052/login/*> |
| 125 | | |
| 126 | | !AllowOverride None |
| 127 | | |
| 128 | | order allow,deny |
| 129 | | |
| 130 | | allow from all |
| 131 | | |
| 132 | | </Proxy> |
| | 132 | For SSL services (in /etc/apache2/sites-available/default-ssl) we need: |
| | 133 | |
| | 134 | {{{ |
| | 135 | ... |
| | 136 | ProxyPass /schedule/ "http://172.16.250.7:5052/login/ShowScheduler" |
| | 137 | <Location /schedule> |
| | 138 | Order allow,deny |
| | 139 | Allow from all |
| | 140 | </Location> |
| | 141 | |
| | 142 | ProxyPass /loginService/ http://172.16.250.7:5052/login/ |
| | 143 | <Location /loginService> |
| | 144 | AllowOverride None |
| | 145 | order allow,deny |
| | 146 | allow from all |
| | 147 | </Location> |
| | 148 | <Proxy http://<host>:5052/login/*> |
| | 149 | AllowOverride None |
| | 150 | order allow,deny |
| | 151 | allow from all |
| | 152 | </Proxy> |
| | 153 | ... |
| | 154 | }}} |
| 137 | | === Example: === |
| 138 | | INSERT into resources (machid,name,location,rphone,notes,minRes,maxRes) VALUES |
| 139 | | ('sc1431b400c5f130', 'grid', 'Orbit Facility', '(732) 932-6857', 'Main 400 node grid,30,120) |
| | 160 | For example: |
| | 161 | |
| | 162 | {{{ |
| | 163 | #> mysql -p -u omf |
| | 164 | Enter password: |
| | 165 | mysql> use newScheduler; |
| | 166 | mysql> INSERT into resources (machid,name,location,rphone,notes,minRes,maxRes) VALUES ('sc1431b400c5f130', 'grid', 'Orbit Facility', '(732) 932-6857', 'Main 400 node grid',30,120); |
| | 167 | mysql> select * from resources; |
| | 168 | +------------------+------+----------------+----------------+--------------------+--------+--------+--------+------------+----------+-------------+ |
| | 169 | | machid | name | location | rphone | notes | status | minRes | maxRes | autoAssign | approval | allow_multi | |
| | 170 | +------------------+------+----------------+----------------+--------------------+--------+--------+--------+------------+----------+-------------+ |
| | 171 | | sc1431b400c5f130 | grid | Orbit Facility | (732) 932-6857 | Main 400 node grid | a | 30 | 120 | NULL | NULL | NULL | |
| | 172 | +------------------+------+----------------+----------------+--------------------+--------+--------+--------+------------+----------+-------------+ |
| | 173 | 1 row in set (0.00 sec) |
| | 174 | |
| | 175 | mysql> quit |
| | 176 | Bye |
| | 177 | #> |
| | 178 | }}} |
| | 179 | |
| | 180 | Here: |
| | 181 | |