Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9134035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:35:26+00:00 2026-06-17T08:35:26+00:00

I have deployed my nodejs app on a VPS(ubuntu 10.04). I have hosted it

  • 0

I have deployed my nodejs app on a VPS(ubuntu 10.04). I have hosted it on a subdomain (subdomain.myapp.com:3000) and I just have one IP address

By default port 80 is been used by apache as default. I just want that my app should run on port 3000 but URL should be (subdomain.myapp.com)

Is this possible in nodejs or do I have to tweak my virtual host or apache’s files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:35:27+00:00Added an answer on June 17, 2026 at 8:35 am

    Yes it is possible

    In your apache virtual host file configure with the following

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

    You should have

    NameVirtualHost *:80
    

    on top of your file and also Proxy module installed for apache ( I think it is a default configuration for ubuntu )

    LoadModule proxy_module lib/httpd/modules/mod_proxy.so
    

    it must be in your httpd.conf file

    then you should restart apache and it must be fine!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jruby app deployed onto tomcat and it will not pickup nodejs
Have deployed numerous report parts which reference the same view however one of them
I have deployed my app in remote server with capistrano and git. I'm novice
I have an app that is deployed to Tomcat 7 and is currently clustered
We have deployed a .net 4 asp.net site on IIS 6.0. Default.aspx is configured
I have deployed my asp.net MVC app to production, and it works as expected.
I have deployed an application on Google App Engine; I would like to see
So, I have built and deployed a Grails app onto cloudfoundry. And as I
I have deployed my pylons app on the server~ I use nginx end flup,
I have deployed a website using Visual Studio 2010 on IIS6. I used one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.