Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Configure Security in PHP Proxy

Included in the code distribution is index.php which can act as a simply proxy for use in a PHP-enabled Apache web server. This proxy file requires PHP to be compiled with XML support (default setting in most Linux distributions). Within the PHP file are 2 arrays that are used to restrict all requests from connected web clients to only the IP addresses that the cells are located at.


Array

Description

$WHITELIST  

List of acceptable URL prefixes.  

$BLACKLIST

List of*invalid* URL prefixes.



Examples:

Code Block
borderStylesolid
titleindex.php

$WHITELIST = array(
	"http://",
	"http://127.0.0.1:9090/axis2/rest/",
	"http://localhost:9090/axis2/rest/",
	"http://127.0.0.1:7070/i2b2/rest/",
	"http://localhost:7070/i2b2/rest/",
	"http://services.i2b2.org",
	"https://services.i2b2.org"
);


$BLACKLIST = array(
	"http://127.0.0.1:9090/test",
	"http://localhost:9090/test",
	"http://127.0.0.1:7070/test",
	"http://localhost:7070/test"
);


Steps to update the index.php file


Warning
titleWARNING

Make sure you are editing the files in your web server directory and not the ones that reside in YOUR_I2B2_WC_DIR.



indent
Level1

1. Go to the web client folder in your web server directory.


indent
Level3

Linux Example:   /var/www/html


indent
Level3

Windows Example:   C:\inetpub\wwwroot



indent
Level1

2. Open the index.php file to edit the existing arrays with information that is relevant to your security policies .


indent
Level1

3. Save the changes and close the file.