| 34 | == Running behind port-forwarding firewall == |
---|
| 35 | * The ADEI Apache server should run on the port users specify in the location. Lets consider that remote users are using http://gateway.domain.net:8000/adei to access ADEI running at http://adei.domain.net:80/adei and the gateway does port forwarding. In this case, it is necessary that local web requests bypassing the gateway server, but directed to the port 8000 to be served by Apache server. This is achieved either by running Apache on both ports 80 and 8000 or by performing local port redirection from 8000 to 80. |
---|
| 36 | * The default configuration also requires that local requests directed to http://gateway.domain.net:8000 to be redirect back to the ADEI server. If the gateway configuration does not perform port forwarding for requests from local interface, it is necessary to change ''RewriteRule'' in the ADEI ''services/.htaccess'. The following statement should be written instead of the default one. |
---|
| 37 | {{{ |
---|
| 38 | RewriteRule ^([\w\d_]+)(\.php)?$ http://127.0.0.1/%1service.php?service=$1&%{QUERY_STRING} [L,P] |
---|
| 39 | }}} |
---|
| 40 | |
---|
| 41 | |
---|