title: Openproject, apache and /var/www/html
body: <p>I have an issue with Openproject, Apache and other apps that are installed in /var/www/html.</p>
  
  <p>When I try to connect to any app in /var/www/html or even index.html it doesn't work because it looks like Openproject conf file is 'redirecting' traffic to another folder (openproject folder I guess).</p>
  
  <p>Here is my Openproject.conf </p>
  
  <pre><code>Include /etc/openproject/addons/apache2/includes/server/*.conf
  
  &lt;VirtualHost *:80&gt;
    ServerName tools.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 proxypass directives on CentOS
    ProxyPass /openproject/ http://127.0.0.1:6000/openproject/ retry=0
    ProxyPassReverse /openproject/ http://127.0.0.1:6000/openproject/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Here is the content of my 000-default.conf:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
          # The ServerName directive sets the request scheme, hostname and port that
          # the server uses to identify itself. This is used when creating
          # redirection URLs. In the context of virtual hosts, the ServerName
          # specifies what hostname must appear in the request's Host: header to
          # match this virtual host. For the default virtual host (this file) this
          # value is not decisive as it is used as a last resort host regardless.
          # However, you must set it for any further virtual host explicitly.
          #ServerName www.example.com
  
          ServerAdmin webmaster@localhost
          DocumentRoot /var/www/html
  
          # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
          # error, crit, alert, emerg.
          # It is also possible to configure the loglevel for particular
          # modules, e.g.
          #LogLevel info ssl:warn
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  
          # For most configuration files from conf-available/, which are
          # enabled or disabled at a global level, it is possible to
          # include a line for only one particular virtual host. For example the
          # following line enables the CGI configuration for this host only
          # after it has been globally disabled with "a2disconf".
          #Include conf-available/serve-cgi-bin.conf
  &lt;/VirtualHost&gt;
  
  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  </code></pre>
  
  <p>When I change the ServerName in the openproject.conf to anything else than 
  tools.mydomain.com I can access the apps in /var/www/html but I can't figure out how this works... I don't understand the way apache works like this..</p>
  
  <p>Thanks for your help.</p>