RXS HTTP Command
From Wiki
|
| User Guide |
| v2.10+ |
The barebones approach to ending an Apache HTTP server is to use the ENDTCPSVR command. 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. For this reason we have created a command that can help you with your Apache HTTP server needs. The command is named “HTTP”. Simply type HTTP on the command line and select F4 to see the various options.
Contents |
HTTP Command Options
OPTION(*WRK)
- Specifying OPTION(*WRK) on the HTTP command will display the jobs for that particular Apache HTTP instance.
HTTP HTTPSVR(MYRXS) OPTION(*WRK)
- Running the above command will produce a screen similar to the following.
Subsystem/Job User Type CPU % Function Status MYRXS QTMHHTTP BCH .0 PGM-QZHBMAIN SIGW MYRXS QTMHHTTP BCI .0 PGM-QZSRLOG SIGW MYRXS QTMHHTTP BCI .0 PGM-QZSRHTTP SIGW MYRXS QTMHHTTP BCI .0 PGM-QZSRHTTP DEQW
OPTION(*START)
- Specifying OPTION(*START) on the HTTP command will start the jobs for that particular Apache HTTP instance.
HTTP HTTPSVR(MYRXS) OPTION(*START)
- You can subsequently use the OPTION(*WRK) for the HTTP command to see if the server jobs started successfully.
OPTION(*END)
- Specifying OPTION(*END) on the HTTP command will end the jobs for that particular Apache HTTP instance.
HTTP HTTPSVR(MYRXS) OPTION(*END)
- You can subsequently use the OPTION(*WRK) for the HTTP command to see if the server jobs ended successfully.
OPTION(*CONF)
- Specifying OPTION(*CONF) on the HTTP command will take you to the configuration of that Apache instance.
HTTP HTTPSVR(MYRXS) OPTION(*CONF)
- Under the covers it is invoking the EDTF command and, in the case of MYRXS, brings up file /www/myrxs/conf/httpd.conf. After making needed changes, press F2 to change and then F3 to exit. You will want to restart the Apache server for the changes to take effect. Refer to OPTION(*END) and OPTION(*START) for details on ending and starting respectively.
OPTION(*LOGS)
- Specifying OPTION(*LOGS) on the HTTP command will take you to the logs directory of that Apache instance.
HTTP HTTPSVR(MYRXS) OPTION(*LOGS)
- Under the covers it is invoking the WRKLNK command and, in the case of MYRXS, brings up folder /www/myrxs/logs/*. Here you will see a listing of files that contain logs of events that have occurred as they relate to the Apache server that was referenced on the HTTPSVR parameter. Here is a sample screen shot of what you will see:
Object link
error_log.Q108032200
error_log.Q108032300
error_log.Q108032400
error_log.Q108032500
error_log.Q108032600
error_log.Q108032700
error_log.Q108032800
error_log.Q108032900
error_log.Q108033000
- The numbers correlate to a date stamp – one file for each day. The most recent files will be at the bottom of the listing.
OPTION(*RESTART)
- Specifying OPTION(*RESTART) on the HTTP command will restart the Apache HTTP instance.
HTTP HTTPSVR(MYRXS) OPTION(*RESTART)
- Under the covers it is invoking the STRTCPSVR commandcommand with the *RESTART option. We find it a best practice to use the OPTION(*END) and then OPTION(*WRK) to make sure the server is ended, and then OPTION(*START) – all using the HTTP command.
OPTION(*DOCS)
- Specifying OPTION(*DOCS) on the HTTP command will take you to the documents directory of that Apache HTTP instance. In the web service world, the documents directory is where you would store your static documents like .wsdl files. In the case of communicating with the browser, the documents directory is where you would store things like .html, .css, and .js files.
HTTP HTTPSVR(MYRXS) OPTION(*DOCS)
- Under the covers it is invoking the WRKLNK command and, in the case of MYRXS, brings up folder /www/myrxs/htdocs/*.
OPTION(*CURLOG)
- Specifying OPTION(*CURLOG) on the HTTP command will take you to the current log file in the IFS.
HTTP HTTPSVR(MYRXS) OPTION(*CURLOG)
- Under the covers it is invoking the WRKLNK command and, in the case of MYRXS, brings up folder /www/myrxs/logs/error_log.QCYYMMDD*.
OPTION(*DIR)
- Specifying OPTION(*DIR) on the HTTP command will take you to the main directory of that Apache HTTP instance.
HTTP HTTPSVR(MYRXS) OPTION(*DIR)
- Under the covers it is invoking the WRKLNK command and, in the case of MYRXS, brings up folder /www/myrxs/*. Below is a sample of what OPTION(*DIR) produces.
Object link
conf
htdocs
logs
templates
trans