route port 3000 to apache2 alias

Posted by user223470 on Server Fault See other posts from Server Fault or by user223470
Published on 2014-06-02T22:58:06Z Indexed on 2014/06/03 3:30 UTC
Read the original article Hit count: 445

Filed under:
|
|
|

I have a meteor application running on port 3000. I can successfully connect to the program with www.myurl.com:3000, but would rather connect to it via www.myurl.com/myappname. I started with the instructions on this web site: http://www.andrehonsberg.com/article/deploy-meteorjs-vhosts-ubuntu1204-mongodb-apache-proxy and I have the following Apache configuration file:

<VirtualHost *:80>
     ServerName myurl.com
     ProxyRequests off
             <Proxy *>
                    Order deny,allow
                    Allow from all
             </Proxy>
           <Location />                                                         
             ProxyPass http://localhost:3000/
             ProxyPassReverse  http://localhost:3000/
         </Location>

</VirtualHost>

I do not know how to continue from here to get the program on www.mysite.com/myapp. In other situations, I would use an Alias within the Apache configuration file, but that doesn't seem like the right direction to go in this case.

How do I configure Apache to send port 3000 to www.myurl.com/myapp?

© Server Fault or respective owner

Related posts about apache-2.2

Related posts about mod-proxy