get a list of the httpd config files

select path_name, object_type, data_size, object_owner
from table(qsys2.IFS_OBJECT_STATISTICS(
start_path_name => '/www',
subtree_directories => 'YES'))
where --LOCATE_IN_STRING(path_name, 'httpd.conf', -1)
path_name like '%httpd.conf';

should be able to use that to

select line_number, line
from table (
qsys2.ifs_read(
path_name => '/www/apachedft/conf/httpd.conf',
end_of_line => 'ANY',
maximum_line_length => default,
ignore_errors => 'NO')
)
where upper(line) like '%LISTEN %' ;

I'm no good at making a CTE to make it all one statement.

Bryan


Dave wrote on 5/19/2023 2:24 AM:
Hi,

Is there any way I can get the list of our http server instances and
information from the configuration files (the port numbers, for example)?

Thanks


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.