Dear Tim,
That is the problem because when it is loading and after some time it gives the proxy error below the dev tools are not showing any error whatsoever. I checked the documentation also that you provided none of the errors are listed in it since the devtools are not showing any ... Apache 24 is showing the error below i went back a couple of versions with Apache2 i am getting the following error below.
Apache24
"Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server"
Apache2
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /reload/1701956886276.
Reason: Error reading from remote server
The only error that i am getting is in the apache logs is this below does it give you a hint of how i can solve this issue ?
[Fri Dec 08 09:11:07.422110 2023] [proxy_http:error] [pid 9304:tid 1244] (OS 10060)
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : [client
192.168.40.165:24224]
AH01102: error reading status line from remote server localhost:4000, referer: https://haigrepository.haigazian.edu.lb/home[Fri Dec 08 09:11:07.422110 2023] [proxy:error] [pid 9304:tid 1244] [client
192.168.40.165:24224] AH00898: Error reading from remote server returned by /favicon.ico, referer:
https://haigrepository.haigazian.edu.lb/home
I searched all over the web and didn't find any solution yet... Please I am putting my configuration if you can just take a look, posting the important sections
local.cfg
Config.prod.yml
ui:
ssl: false
host: localhost
port: 4000
nameSpace: /
rateLimiter:
windowMs: 60000 # 1 minute
max: 500 # limit each IP to 500 requests per windowMs
useProxies: true
nameSpace: /server
dspace.angular.json
{
"apps": [
{
"name": "dspace-angular",
"cwd": "c:\\dspace-angular-dspace-7.6",
"script": "dist\\server\\main.js",
"instances": "max",
"exec_mode": "cluster",
"env": {
"NODE_ENV": "production",
"DSPACE_REST_HOST": "
HaigRepository.haigazian.edu.lb",
"DSPACE_REST_SSL": "true",
"DSPACE_REST_PORT": "443",
"DSPACE_REST_NAMESPACE": "/server"
}
}
]
}
For the proxy, the SSL file that I have included in the main httpd.conf is as follows
<VirtualHost _default_:443>
DocumentRoot "${SRVROOT}/htdocs"
ServerName
HaigRepository.haigazian.edu.lbServerAdmin
ad...@example.comProxyRequests on
SSLEngine on
SSLProxyEngine on
SSLCertificateFile "${SRVROOT}/conf/drlive.crt"
SSLCertificateKeyFile "${SRVROOT}/conf/drlive.key"
SSLCertificateChainFile "${SRVROOT}/conf/drlive2.cer"
SSLCompression off
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder off
SSLSessionTickets off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
<Proxy *>
AddDefaultCharset Off
Require all granted
</Proxy>
ProxyPass /server
http://localhost:8080/server ProxyPassReverse /server
http://localhost:8080/server #SetEnv proxy-initial-not-pooled
ProxyPass /
http://localhost:4000/ ProxyPassReverse /
http://localhost:4000/ </VirtualHost>
Any ideas ? thanks much