Image

Imageours_garou wrote in Imagelinux 😡frustrated

Help! Apache won't recognize Vhosts!

I'm going to say a dirty word now, but please realize that this dirty word is being used in the interests of standardizing server installs where I work.

RPM

My co-workers and I are trying to migrate from an all-compiled installation of Apache to an RPMized install of Apache. I'm working on a proof-of-concept box right now (running Red Hat 6.2), and I'm trying to rebuild Apache out of an SRC RPM. I'm using a rebuild instead of a straight-up install from a binary distribution because I want Apache to detect and use "mm" and "SSL."

After the rebuild, I'm left with a binary install that looks good on the surface, but refuses to serve any of the virtual hosts I've bound to it in httpd.conf. Instead, the server always directs users to the default docroot on the box, and uses the default, bogus SSL key that Apache created as part of the install. The server never uses any of the other keys installed on the box.

What went wrong? I've had our senior Unix consultant review the config files, and they all look good. He wants to go back to an all-compiled solution. I want to try and move forward with the RPM plan. What's the solution?