Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Apache2 vhosts configuration ???

Apache2 vhosts configuration ???

Added by Marcel K over 8 years ago

Hello,

I installed OpenProject on my vServer and configured OP with the wizard. One point is really questionable for me:

After installation I cannot access the default apache2 webdirectory (/var/www/html). I think that is clear because OP re-configured apache2 vhosts. But I cannot find a way to configure it, that I can use OP and the default webdirectory.

What is the right way to configure apache2?

I wanna access OP —> mydomain.com/openproject
Access Default (/var/www/html/…) —> mydomain.com

I tried to bring in Alias but no success. What can I do?

Thanks
Marcel


Replies (2)

RE: Apache2 vhosts configuration ??? - Added by Christian Pohl over 8 years ago

Well OP asks you while the installation, if you want to supply a subfolder (eg. mydomain.com/openproject)

So it would might be the fastest way to reconfigure it.

Other than that: OP does create new Vhosts files for its own use, which do not overwrite any existing one. So I would check the other configurations for any problems.

RE: RE: Apache2 vhosts configuration ??? - Added by André Faria over 7 years ago

I know is a very old post.
But I spend 3 days to solve this and is a first post when we google
so, when you install openproject he create a file called openproject.conf and disable the 000-default.conf

inside this file are a configuration like this

Include /etc/openproject/addons/apache2/includes/server/*.conf

<VirtualHost *:80>
  ServerName mydomain.com


   DocumentRoot /opt/openproject/public

    ProxyRequests off

    Include /etc/openproject/addons/apache2/includes/vhost/*.conf

    # Can't use Location block since it would overshadow all the other roxypass directives on CentOS
    ProxyPass /help/ http://127.0.0.1:6000/help/ retry=0
    ProxyPassReverse /help/ http://127.0.0.1:6000/help/

</VirtualHost>

but when you try acess the mydomain.com you receive the message 403 - forbitten

you just need modify the file like this

Include /etc/openproject/addons/apache2/includes/server/*.conf

<VirtualHost *:80>
  ServerName mydomain.com
  ServerAlias www.mydomain.com
   DocumentRoot /var/www/html  # <----- LOCATION WHERE YOU SITE ARE
   #DocumentRoot /opt/openproject/public #<--- You Need comment this line

    ProxyRequests off

    Include /etc/openproject/addons/apache2/includes/vhost/*.conf

    # Can't use Location block since it would overshadow all the other proxypass directives on CentOS
    ProxyPass /help/ http://127.0.0.1:6000/help/ retry=0
    ProxyPassReverse /help/ http://127.0.0.1:6000/help/

</VirtualHost>

So, if can see the proxypass below, apache will redirect to then when you put mydomain.com/help (you be redirect to openproject), mydomain.com (you main site )

I Hope with this help someone
Be Happy :)

  • (1 - 2/2)
Loading...