Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Specifically, I have two httpd.conf files:



How should I modify the /etc/init.d/apache2 script so that instances of Apache will be invoked for both configurations?

The apache2 script is currently standard/unmodified.

share|improve this question
I thought we can't use httpd.conf in apache2... – thefourtheye May 5 '13 at 14:54


alternatively, is it possible to solve your problem with different vhosts?

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – stephenmyall Jul 5 '13 at 8:30
on the one hand i understand your concern about bit-rot and disappearing links. on the other hand i do not believe in content duplication and prefer to have one place for a piece of information where it can (possibly) receive future updates. i will turn my answer into a community wiki, so other people can copy over the information. – mnagel Jul 5 '13 at 8:45
Given that this is Ask Ubuntu, you should actually link to instead – Josip Rodin Jun 30 '15 at 13:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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