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 8020091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:35:27+00:00 2026-06-04T21:35:27+00:00

I deployed an application on Heroku and I used a folder to place all

  • 0

I deployed an application on Heroku and I used a folder to place all my files inside thus now my application is only accesible from:

http://myapp.heroku.com/app/

Is it possible to create a virtual root to point

http://myapp.heroku.com -> http://myapp.heroku.com/app/ ?

Something similar to Apache VirtualHost?:

<VirtualHost 10.1.2.3>
  ServerAdmin webmaster@host.foo.com
  DocumentRoot /www/docs/host.foo.com
  ServerName host.foo.com
  ErrorLog logs/host.foo.com-error_log
  TransferLog logs/host.foo.com-access_log
</VirtualHost>

Thanks in advance.

  • 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-04T21:35:28+00:00Added an answer on June 4, 2026 at 9:35 pm

    Yes you can configure the apache as well, however, this needs some changes on your system.

    I’ve compiled a blog post recently that shows this (as the last part), it also shows how you can compile your own PHP extensions for heroku:

    PHP on Heroku, again (by hakre; 20 May 2012)

    It basically works by extending the standard configuration with your additional settings in another file. Look for the Configure the Webroot section, that’s where it starts:

    Now comes the next tricky part that is specifying the webroot. Specifying the webroot needs a little bit more work and background information. The CVBacklogs applications webroot in the git-tree is src/app/public. For Heroku, by default, the webroot is the root of the git-tree. That directory is internally mapped to /app/www btw. So what this needs is to create a so called Procfile that starts a sh-script each time the Heroku app web-node starts. That script then modifies the Apache configuration and includes your own config which is setting the webroot to /app/www/src/app/public. So we create the procfile, a config directory, the script and the Apache configuration. Ready?

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

Sidebar

Related Questions

I have an application written in Rails, deployed on Heroku. I used to have
In a Rails application that is deployed to Heroku I need to import a
I m new to heroku. I deployed my rails 3 application in heroku and
I'm passing parameters to a .NET ClickOnce-deployed application via the URL from a Flex
I have deployed a Rails application on Heroku (web-server thin). When I push it,
I am confused, regarding deploy application on Heroku. When I deployed my rails 3.0
This has been bugging me for awhile now. In a deployed PHP web application
I've just deployed my application to heroku and pointed my custom domain to the
I have a web application deployed on heroku. I just introduced Neo4j as data
I have a Ruby/Sinatra application deployed on Heroku and I am using the IndexTank

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.