How should my Virtual Host be configured?

Not applicable

Team,

I have a AWS ELB in front of apigee. It's listening on port 80 and how to forwarding all traffic to apigee's 9001 port.

How should the virtual host be set up for port 80 and 443?

Many Thanks,

Madhu

0 3 351
3 REPLIES 3

Not applicable

Hi @Madhu

When creating a virtual host, you specify the Router port used by the virtual host. For example, port 9001. As of Edge for Private Cloud version 4.16.01, by default, the Router runs as the user "apigee" which does not have access to privileged ports, typically ports 1024 and below. If you want to create a virtual host that binds the Router to a protected port then you have to configure the Router to run as a user with access to those ports. See Setting up a virtual host for more.

More info here: http://docs.apigee.com/api-services/content/virtual-hosts

Also relevant: Private Cloud 4.17.05 includes the "baseUrl" override functionality on virtual hosts, so even if your external protocols, ports, or host aliases don't match the internal ones you can set a static base URL to properly display the external URL to users. Information about this feature is in the release notes at http://docs.apigee.com/release-notes/content/41705-edge-private-cloud-release-notes#newfeaturesandup... (search for "baseUrl").

@Madhu as mentioned above, if you define virtual hosts on privilege ports 80, 443 or other lower ports, your Router will need to be started as root. You want to avoid that and keep Router process owned by Apigee user.

Use higher ports. We typically suggest 9000 and above but the port number can be anything with the exception of privilege port range.