Hello,
I'm working on similar server 500 errors, and I decided to take a break on working my certs and have my front end connect to
https://api7.dspace.org/server instead, as its certs are working.... To do so, my config.prod.yml looks like this now.
ui:
ssl: false
host: localhost
port: 4000
nameSpace: /
rateLimiter:
windowMs: 60000 # 1 minute
max: 500 # limit each IP to 500 requests per windowMs
# Trust X-FORWARDED-* headers from proxies (default = true)
useProxies: true
rest:
ssl: true
host:
api7.dspace.org port: 443
nameSpace: /server
When I connect to
http://localhost:4000/home, I get see
api7.dspace.org stuff through my front end and I can navigate it just fine (other than the Log in stuff, of course).
However,
as soon as I turn on my virtual host (apache httpd), my front end connects to api7.dspace.org for about 3 seconds, and then it throws a 500. I'm not really sure where to go from here.... Do I need to change config.prod.yml again?
Here is what I have for my virtual host:
<VirtualHost *:80>
ServerName
mydomain.com ProxyPass /
http://localhost:4000/ ProxyPassReverse /
http://localhost:4000/ Header set Access-Control-Allow-Origin "*"
</VirtualHost>
What else should I be changing? Restarting pm2 doesn't seem to help... Maybe there is some other Apache setting? ServerRoot? <DocumentRoot>? <Directory>?
Many thanks,
Katy