Reputation: 1054
How can i modify some configuration in openshift , I am serving a jekyll site by directly linking the static built html page , ( as opposed to building it through source , which was proving to be a pain ).
But now even though almost all of my blog works fine , the /about and /contact pages do not work , because those are /about.html and /contact.html , the ruby server rewrites the request and I am trying to do the same in apache. Is there any way to add mod_rewrite module to apache httpd on openshift. I tried the console tool , to see if I can ssh , but it logs in says using project "xyz" and then i go back to terminal. Totally new to openshift.
Upvotes: 0
Views: 3021
Reputation: 619
The configuration you're looking for isn't actually part of Openshift; its part of the container running Apache, so even if you open a shell into that container (which you can do using oc rsh <pod-name>
) any changes you make won't persist past the life of that container.
You'll need to modify the Docker image, and then re-deploy using your modified image. It looks like mod_rewrite might be installed by default , but not enabled, which someone explains how to do here. Here's the page with the info about the httpd image, and there's also some instructions for changing the configuration there.
Upvotes: 2