Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Configuring Apache – PB Docs 2022 – PowerBuilder Library

Configuring Apache – PB Docs 2022

Configuring Apache

This section is to configure Apache as a reverse proxy server
in a Linux machine.

Step 1: Go to the /etc/httpd/conf folder and open the
httpd.conf file in a text editor.

Step 2: Add the following scripts to the end of the httpd.conf
file.

This is to configure Apache as a reverse proxy server which
will redirect requests made to the URL: https://172.16.100.40:8080/
to the PowerServer Web APIs running on Kestrel at
https://172.16.100.35:6000/.

Step 3: Locate the following line in the httpd.conf file and
specify the port number: 80 (or any port you choose) is used to
access the static Web files on the Apache HTTP server, 8080 is used
to access Web APIs (according to the reverse proxy setting in step
2, requests made to 8080 will be forwarded to 6000.)

Change

To

Tip: In CentOS, you can
execute the command “netstat -anp | grep 8080” to check if the port
number is occupied by any other program.

Step 4: Run the following command to add port 8080 to
“http_port_t”:

Note

If the port is not properly added, you may see the following
error when you start and check the status of Apache:

linux_19.png

Step 5: If you have set up a firewall on the server, run the
following command to permanently enable port 8080:

and the following command to reload the firewall
service:

Note

If the firewall blocks the port number, you may have the
following error when running the application.

linux_17.png

Step 6: Check if any syntax errors in httpd.conf, and then
restart Apache for the changes to take effect.

Step 7: Verify that Apache is running.

linux_8.png

Step 8: Run the following command to allow Apache to make
outbound connections.

Note

If Apache is not allowed to make outbound connections, you
may encounter the following error when running the
application,

linux_9.png

and may have the following errors in the
varloghttpderror_log.log file.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x