Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I did install GitLab on my Apache server using this script https://github.com/gitlabhq/gitlabhq/issues/3626 and I configured Apache to forward everything incoming on port 8080 to port 3000 like this:

<VirtualHost *80>

    ProxyPass / http://127.0.0.1:3000/
    ProxyPassReverse / http://127.0.0.1:3000/
    ProxyPreserveHost On

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

    .
    .
    .

</VirtualHost>

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

1 Answer 1

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

 
discard

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