Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm setting up a server and trying to configure the Apache. It only needs to work as a frontend to Tomcat.

To do that I added some instructions to the VirtualHost directive, using mod_proxy:

<VirtualHost *>
  ProxyRequests Off
  ProxyPass /
  ProxyPassReverse /    

It works fine, and if the need comes, I´ll use mod_jk.

But, how do I do it the right way using easyapache, and stop it to always rewrite my changes.


locked by HopelessN00b Mar 11 '15 at 18:40

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by masegaloeh, HopelessN00b Mar 11 '15 at 18:36

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

It sounds silly to ask, but have you opened a ticket with cPanel support? They're normally quite good. – Jon Cram Jul 17 '09 at 7:11
No questions are silly (and I hope mine neither) =) Didn't tried it yet. I´m used to mess the system using ssh and vi, but new to this nice UI WHM thing. I will try it, thanks. – Seiti Jul 17 '09 at 14:58
up vote 4 down vote accepted

You should really only use the distiller or templates if you're making changes to the server-wide configurations.

If you're making changes to individual virtual hosts, you should use their (slightly convoluted) includes system:

Looks like "how to make a hard task easier and friendly, making it harder and cumbersome"... =( – Seiti Aug 11 '09 at 23:18
1 is not a valid link. perhaps servervault should remove extremely old crap from the serps. – user3474835 Aug 25 '14 at 7:23

You'll need to run the EasyApache distiller. Make your changes, then run:

usr/local/cpanel/bin/apache_conf_distiller --update

Then run:


When you run this last script it will run a configuration check and rebuild httpd.conf with your changes intact (or let you know you screwed up). If you end up having/needing lots of custom things I would recommend reading up on using the vhost.local templates.


Not the answer you're looking for? Browse other questions tagged or ask your own question.