version: Apache/2.4.46

Apache2.4] Output POST logs

For what?

When I press the refresh button on the WordPress edit screen, the text edit screen section is slow to refresh.

No delays in DB as far as general query logs are concerned.

Published WordPress posts display fast.

Isn't that the speed of POST?

 

version

# httpd -v
Server version: Apache/2.4.46 ()
Server built: Aug 24 2020 18:54:20

Required Modules

What is mod_dumpio?

# httpd -M |grep dumpio
dumpio_module (shared)

Hmmm...it is intolerable.

 

setup file

Module Loading

# cat /etc/httpd/conf.modules.d/00-base.conf | grep dump
LoadModule dumpio_module modules/mod_dumpio.so

# httpd -M | grep dump
dumpio_module (shared)

Modules are loaded and OK.

Setting the DumpIOInput directive

Also set the log level and restart Apache.

# vim /etc/httpd/conf.d/vhost.conf
------------------------------------
DumpIOInput On
LogLevel debug dumpio:trace7
------------------------------------

# systemctl restart httpd

 

Log output result

Oh, it's out. This one that took about 2 seconds.

I mean, I noticed later that POST was logged in the ssl log without dumpio setting.

I was looking at the http log "/var/log/httpd/domain-access_log".

tail -f /var/log/httpd/domain_ssl_access_log
-------------------------------------------------------------
111.222.333.44 - - [25/Feb/2021:17:17:04 +0900] "POST /wp-admin/post.php HTTP/1.1" 302 -
111.222.333.44  - - [25/Feb/2021:17:17:05 +0900] "GET /wp-admin/post.php?post=177&action=edit&message=1 HTTP/1.1" 200 259790
111.222.333.44  - - [25/Feb/2021:17:17:06 +0900] "GET /wp-admin/admin-ajax.php?action=oembed-cache&post=177 HTTP/1.1" 200 1
-------------------------------------------------------------

 

記事タイトル検索