Content
404 errors after installation of open project to a sub directory on an existing site
Added by Richard Squibb over 4 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!