Open link in a new tab

Content

Expand project menu

Apache2 vhosts configuration ???

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

Message actions

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.

Message actions

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 :)