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. Access OpenProject via Subdomain

Access OpenProject via Subdomain

Added by Darkentik GER about 9 years ago

Hey!

I´m using OP since December and i´m in trouble to access OP via the subdomain op.mydomain.de.
Now i use OP with mydomain.de:800. So i configured apache with a virtualhost.
I googled around and found only some threads here which were still open and have no answers for this.
My VServer is hosted by server4you.de and runs with Ubuntu and Plesk.
Can someone help me?

regards,
David


Replies (10)

RE: Access OpenProject via Subdomain - Added by Oliver Jakobi about 9 years ago

Hi David,

running openproject in a subdomain as mentioned should not be that much of a problem.
What you would be doing is nothing other than

  • setting up your subdomain
  • configuring your webserver to proxy subdomain.yourdomain.de to your installation of openproject.

I could answer your questions in more detail if you provide more information about what your problem is.

Best
Oliver

RE: Access OpenProject via Subdomain - Added by Darkentik GER about 9 years ago

Hi Oliver,

thanks for your support offer.
We have a VServer that we manage with Plesk.
In Plesk i created a new Subdomain called “op.mydomain.de”.
The Installation folder of OP is located at “/opt/openproject/public”.
When i had created the subdomain mentioned above, Plesk created a new, let me call it “www-homefolder”, for the subdomain under the main www folder.
Now i tried to symlink this “www-homefolder” of the subdomain to the OP installfolder. But here i got in trouble with the apache.
Can you tell me how to proxy my subdomain to the OP installation with apache?

Thank you very much!!!

Best regards,
David

RE: Access OpenProject via Subdomain - Added by Oliver Jakobi about 9 years ago

Hi David,

sorry for getting back with an answer that late!
I had been to CeBIT for a week and became sick after it… :/

Since you use Plesk we differ a little. I host my vserver at server4you as well, but use plain ubuntu without plesk. Also I use nginx.
But since you can use your installation of OpenProject on another port, you just seem to have a misconfiguration of apache.

Basically, what you would have to do is written down in the manual installation guide (https://www.openproject.org/open-source/download/manual-installation-guide/)

Would you mind to paste your current apache config?
I’m especially interested in whether your OpenProject is served from its installation folder, or via proxy pass to the application server.

That would help me wrap my mind around your issue.. ;)

Best
Oliver

RE: Access OpenProject via Subdomain - Added by Darkentik GER about 9 years ago

Hi Oliver,

here my apache config file for openproject under /etc/apache2/sites-available/:

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

<VirtualHost *:800>
  ServerName freakylabs.de:800
  DocumentRoot /opt/openproject/public

  ProxyRequests off

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

  ProxyPass / http://127.0.0.1:6000/ retry=0
  ProxyPassReverse / http://127.0.0.1:6000/

</VirtualHost>

When i try to give my Subdomain “op.freakylabs.de” a own virtualhost.conf with the following:

ServerName op.freakylabs.de
ServerAlias www.op.freakylabs.de
DoocumentRoot /opt/openproject/public

Then my Apache gives me this output in the browser:

Forbidden

You don't have permission to access / on this server.
Apache Server at op.freakylabs.de Port 80

And the apache logs shows up:

[Fri Apr 08 21:47:57.691828 2016] [authz_core:error] [pid 27553] [client 84.137.120.228:57886] AH01630: client denied by server configuration: /opt/openproject/public/

And so i don´t have any idea. Where are the settings for accessing this website?

greetz;
David

RE: Access OpenProject via Subdomain - Added by Darkentik GER almost 9 years ago

Hi All,

can no one give me some hint what i´m doing wrong?

greetz

RE: Access OpenProject via Subdomain - Added by André Faria almost 8 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 :)

RE: Access OpenProject via Subdomain - Added by Darkentik GER almost 8 years ago

Hi, it´s Darkentik the Thread owner again.
Sry for confusing while answering with new account but i can´t login with my normal Googleaccount. The Login always want to create a new one and i don´t know why.

Ok. Let´s go!
Thanks Andé Faria for your answer.

I have found a solution for my special setting too.
I said at the beginning that i run a Ubuntu Server with Plesk.
Since a few months i´m happy with the following setup:

  1. Create a new subdomain in Plesk for your OpenProject
  2. Login via shell to your VServer
  3. change the directory to the system config of your subdomain e.g.: /var/www/vhosts/system/SUBDOMAIN/conf
  4. open the vhost.conf file
  5. here are my settings:
    ServerName SUBDOMAIN.Main-DOMAIN.de:80
    ServerAlias www.SUBDOMAIN.Main-DOMAIN.de::80
    DocumentRoot /opt/openproject/public
    ######################################
    #this options should help if the browser ends up with the error 502
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
    ######################################
    ProxyRequests off
    ProxyPass / http://127.0.0.1:6000/ retry=1 acquire=3000 timeout=600 Keepalive=On
    ProxyPassReverse / “http://127.0.0.1:6000/”

So, i´m not the expert for apache but with all the hints from the web i got this setting helping me out especially working with PLESK.
If you have any experience with apache and some hints for us so please let us know some optimizations. :)

greetz,
Darkentik

RE: Access OpenProject via Subdomain - Added by Darkentik GER almost 8 years ago

Hi,

Thanks Andé Faria for your answer.
I have found a solution for my special setting too.
I said at the beginning that i run a Ubuntu Server with Plesk.
Since a few months i´m happy with the following setup:

  1. Create a new subdomain in Plesk for your OpenProject
  2. Login via shell to your VServer
  3. change the directory to the system config of your subdomain e.g.: /var/www/vhosts/system/SUBDOMAIN/conf
  4. open the vhost.conf file
  5. here are my settings:
    ServerName SUBDOMAIN.Main-DOMAIN.de:80
    ServerAlias www.SUBDOMAIN.Main-DOMAIN.de::80
    DocumentRoot /opt/openproject/public
    ######################################
    #this options should help if the browser ends up with the error 502
    SetEnv force-proxy-request-1.0 1
    SetEnv proxy-nokeepalive 1
    ######################################
    ProxyRequests off
    ProxyPass / http://127.0.0.1:6000/ retry=1 acquire=3000 timeout=600 Keepalive=On
    ProxyPassReverse / “http://127.0.0.1:6000/”

So, i´m not the expert for apache but with all the hints from the web i got this setting helping me out especially working with PLESK.
If you have any experience with apache and some hints for us so please let us know some optimizations. :)

greetz,
Darkentik

RE: Access OpenProject via Subdomain - Added by Pranoy Sinha almost 6 years ago

HI Oliver,

I'm stuck while installing OP in a Subdomain - can you pls help me. I have mentioned the details here: https://community.openproject.com/topics/11089

Many thanks

RE: Access OpenProject via Subdomain - Added by Pranoy Sinha almost 6 years ago

Hi,

I'm stuck with 2-3 days. I have tried to install it on a subdomain (Posted here : https://community.openproject.com/topics/11089) - but can't see any files in subdomain's public_html DIR. Pls can you guide me where to keep those files, i am doing package based installation taking ref from https://www.openproject.org/download-and-installation/ - should i proceed with the manual installation process..?

Pls can you help/suggest me. Many thanks.

Oliver Jakobi wrote:

Hi David,

running openproject in a subdomain as mentioned should not be that much of a problem.
What you would be doing is nothing other than

  • setting up your subdomain
  • configuring your webserver to proxy subdomain.yourdomain.de to your installation of openproject.

I could answer your questions in more detail if you provide more information about what your problem is.

Best
Oliver

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