www.krengeltech.com

Working With Apache

From Wiki

Change Listening IP or Port

User Guide

After doing an initial install of RPG-XML Suite you may want to change the port it is listening on. This is an easy task to accomplish by following the below instructions. However, a much better approach to managing your Apache server was added in RXS 2.10. This version added the RXS HTTP Command.


Edit the httpd.conf file by entering the following from the command line.


     EDTF '/www/myrxs/conf/httpd.conf'


Change the 'Listen *:8181' to 'Listen *:80' or whatever new port/IP needs to be put in place. The * in the above statement is where you can specify a specific IP address like 172.25.44.23.

The last step is to stop and start the server. You can do this with the following commands.


     ENDTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)
     STRTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)


Starting Apache Server Instance

     STRTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)


Ending Apache Server Instance

The barebones approach to ending an Apache HTTP server is to use the ENDTCPSVR command command as follows. Note that the ENDTCPSVR command has a default of *ALL for the SERVER parameter which can obviously shut down all TCP related services, making you very unpopular.


     ENDTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)