Web Proxy

Top  Previous  Next

Used for proxying multiple application servers with a shared IP Address via

Virtual Hosting configuration with Apache Web Server or other Web Server. This

should only be used on systems not already managed by Web Hosting Control Panels,

such as Plesk and cPanel. mod_proxy_http or mod_proxy_ajp must already be built-in

or installed and loaded prior. Configuration requirements include valid values for

the following:

protocol -> AJP or  HTTP (default),

listen -> xxx.xxx.xxx.xxx or * (default)

restart command -> '/usr/sbin/httpd restart' (default)

web configuration file -> '/usr/local/apache/conf/httpd.conf' (default)

 

Note you do not have to necessarily provide the actual web server configuration file.

You may provide an "Include" segment instead.

 

After configuring the Proxy Web Server, go to User List and enable per user

Web Proxying via the User Customization option.

 

NOTE:Make sure the NameVirtualHost to match the VirtualHosts in the Proxy Server

Configuration has been set in Apache config. For example:

NameVirtualHost  *:80

 

 

The following are tips on enabling Apache mod_proxy for various Linux distributions

 

Ubuntu

Execute the following:

apt-get update

apt-get install apache2

apt-get install libapache2-mod-proxy-html

a2enmod proxy

a2enmod proxy_http

a2enmod proxy_ajp

a2enmod proxy_balancer

a2enmod proxy_html

 

Next edit the following file and insert the block:

file: /etc/apache2/mods-enabled/proxy.conf

block: Allow from all

 

 

Proxying standalone accounts with Apache on Windows

You are able to provide JAVA hosting with NGASI on Windows

even without any hosting control panel integration.

This is done by creating standalone NGASI Accounts.

The following are the specific steps:

1)Download and install the latest ngasiupdate by following the steps here

2)Before restarting NGASI, you must assign an IP address for Apache

(this IP address must not be in use for hosting any sites in IIS).

Add the IP address in the

C:\usr\ngasi\webapps\ROOT\WEB-INF\ws\webapps\appservermgr\ZP-INF\wsportal.properties

file with an entry like so (you may also put * for Apache to bind to all

available IP Addresses - assuming IIS is not running):

win_apache_listener_address=xxx.xxx.xxx.xxx

3)Login the NGASI AppServer Manager as admin.

4)In the "Available System Users" combobox, manually type in a name for a new account

you want to create.

5)Click the "Add" button.

6)Proceed by clicking the "Yes" button on the popup dialog box.

7)Click the "Users List" tab.

9)Select the newly created account.

10)Click the "Edit" button.

11)Click the "Web Server Proxy" tab.

12)Check  "Enable Proxy" and optionally specify "Maximum Domains".

13)Click "Set".

14)Optionally you may also set the Password for the account.

 

WHAT THE ACCOUNT USER NEEDS TO DO:

1)First any Domains or hostname needs to point to the IP Address assigned to Apache.

This is probably done by editing the DNS zone.

2)The user logs into NGASI AppServer Manager

3)Installs the Application Server.

4)Turns on Application Server.

5)Adds the domains in the "Web Server Configuration" section.

 

 

NOTE: Also refer to the Apache topic.