I have an installation of Wordpress running in Kubernetes cluster in google cloud. The wordpress.yaml starts with:
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
replicas: 1
selector:
matchLabels:
And then I have an Ingress on top of that. I wish to remove the Apache server signature (which is visible when running curl -I http://www.mysite.something) , and if I knew where to find the httpd.conf file this would be easier.
I can ssh into the project by "gcloud compute --verbosity=debug --project "wordpress-xyzblabla" ssh blabla"
And there I can mount disks, e.g. mount scsi-0Google_PersistentDisk_gke-blabla /mnt/disks/foo
And when the disk is mounted at /mnt/disks/foo I find the entire wordpress directory structure containing the .htaccess and wp-content, and what not.
But I cannot find the the httpd.conf or apache.conf files/directories. How do I find/mount those directories, or is there another way to accomplish the removal of the Apache server signature?
I think that this will help you:
Locate and edit a WordPress .htaccess file in Google Compute Engine
https://hostadvice.com/how-to/how-to-disable-server-signature-by-editing-apache-htaccess-file/