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

      OpenProject ID 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. 404 errors after installation of open project to a sub directory on an existing site

404 errors after installation of open project to a sub directory on an existing site

Added by Richard Squibb about 5 years ago

Hallo all, 

I have tried to install a standalone version of open project on a server which already runs a few other applications. This server uses ssl with letsencrypt to provide the certificate. Hence i decided to install it on the subdirectory my.server.com/openproject (where my.server.com is my actual server address), using postgresql and svn using the guide listed here:

https://docs.openproject.org/installation-and-operations/installation/packaged/#ubuntu-1804

On completion of the installation, I ran

$ openproject run check

And all of the checks came back as ok, and the webserver appears to be running. However I get a 404 error when I navigate to my.server.com/openproject. My existing nextcloud installation, which is installed at my.server.com/nextcloud functions fine, as do the other small pages I have in the /var/www/html root folder. I checked my firewall settings and port 6000 is set to listen and there's no problems with 80/443.  I imagine its some kind of proxy setting I am missing, but not being an excellent server admin I am a bit lost as to what to try to resolve this problem.

My understanding of the proxy process is that there should be no redirect or link within the html folder, correct? Because at the moment there is not.

000-default-le-ssl.conf
<IfModule mod_ssl.c>

<VirtualHost *:443>
      ServerName my.server.com
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined

      SSLCertificateFile /etc/letsencrypt/live/my.server.com/fullchain.pem
      SSLCertificateKeyFile /etc/letsencrypt/live/my.server.com/privkey.pem

Include /etc/letsencrypt/options-ssl-apache.conf

</VirtualHost>

</IfModule>

openproject.conf

<VirtualHost *:80> 
 ServerName my.server.com
 RewriteEngine On
 RewriteRule ^/?(.*) https://%{SERVER_NAME}:443/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
 ServerName my.server.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/
</VirtualHost>

Any pointers would be appreciated. Thanks in advance!


Loading...