Fedora Apache Virtual Host - How to make port redirect?

August 2, 2015 2.7k views
Configuration Management Apache Fedora

Hello everyone!

I am trying to set up port redirect on Apache2.2 using Fedora20 by Virtual Host.

I would like my domain to access localhost on port 3000 instead of 80.

This is just one example taken from tens of tries I did:

NameVirtualHost *:80

<VirtualHost *>
    ServerAdmin root@mydomain.com
    ServerName mydomain.com
    ProxyPreserveHost On

    # setup the proxy
    <Proxy *>
        Order allow,deny
        Allow from all
    ProxyPass / http://localhost:3000/
    ProxyPassReverse / http://localhost:3000/

When I'm trying to visit my website, all I'm getting is a 503 error.

I have to admit, that I'm not sure what exactly should I set for ServerAdmin and if it does any matter.

Have you got any ideas?

Be the first one to answer this question.