Content
You are here:
Access OpenProject via Subdomain
Added by Darkentik GER over 8 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)
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
I could answer your questions in more detail if you provide more information about what your problem is.
Best
Oliver
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
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
Hi Oliver,
here my apache config file for openproject under /etc/apache2/sites-available/:
When i try to give my Subdomain “op.freakylabs.de” a own virtualhost.conf with the following:
Then my Apache gives me this output in the browser:
And the apache logs shows up:
And so i don´t have any idea. Where are the settings for accessing this website?
greetz;
David
Hi All,
can no one give me some hint what i´m doing wrong?
greetz
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
but when you try acess the mydomain.com you receive the message 403 - forbitten
you just need modify the file like this
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 :)
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:
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
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:
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
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
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: