Home > OS >  Find the source code for NGINX installed on Amazon Linux 2
Find the source code for NGINX installed on Amazon Linux 2

Time:10-28

I was just trying to edit the source code from NGINX installed via amazon-linux-extras as nginx1 to edit the server response header.

I have read that the best and most simple way is to edit the file ngx_http_header_filter_module.c and change the string to whatever server response.

I am using nginx 1.20 and I can't seem to find the source code.

Thanks

CodePudding user response:

Changing the source code won't help. You would need to recompile nginx and modules and install them. It should be possible to edit the server response header by editing the nginx.conf file. See this question for example.

  • Related