Server Fault is a question and answer site for system and network administrators. 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

I did install GitLab on my Apache server using this script and I configured Apache to forward everything incoming on port 8080 to port 3000 like this:

<VirtualHost *80>

    ProxyPass /
    ProxyPassReverse /
    ProxyPreserveHost On

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks
            Allow Override



However I would like to forward everything only for a particular website I host on this webserver. Can this be done?

I'm quite new into these things, if something is not clear, please ask.

share|improve this question

Your config above does not match what you say that you are doing. But in answer to your question - yes, it can, you set up a VirtualHost for that one website and put the ProxyPass and other proxy directives in that virtualhost. There's a sample config for a similar issue in Running two PHP versions (5.3 & 5.2) at the same time .

I would advise you to spend some time reading the documentation for both virtual hosts and mod_proxy. It will more than pay off in fewer misunderstandings.

share|improve this answer

Your Answer


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