Hello

I think it got hard coded to use localhost in recent versions so just leave 
it running on the loopback adapter and use a reverse proxy to talk to it. 
Use the steps you see in the attached file as hints and make sure tomcat is 
set to run on port 8080.

Good luck

On Tuesday, November 22, 2022 at 7:46:14 PM UTC+3 [email protected] wrote:

> Hello everyone, I ask for your help with the following case that I find 
> myself in. I already have a version of DSpace 7.2.1 with Ubuntu Server 
> 20.04 LTS, it was already implemented in July 2022 and it works correctly, 
> it already has https through port 8443 and everything is fine with this 
> server, but it happens that we have decided to update to version DSpace 7.4 
> with Ubuntu Server 22.04 LTS already has many improvements according to the 
> documentation https://wiki.lyrasis.org everything was going well with the 
> installation and configuration until I get to the part where it should see 
> the published port 4000 to connect to the external as this should work like 
> this for a published government institution.
>
> But in this installation, port 4000 is only listening on the (127.0.0.1) 
> localhost and I can have it, but only locally, as seen in the photo that I 
> attached.
>
>
> [image: DSpace.PNG]
>
> [image: Listen localhost.PNG][image: Listen IP address.PNG]
>
> My question would be how do I change that the listener is the IP address 
> of the server, in this case 192.168.100.118 and not the localhost.
>
> After several attempts I have not been able to change it and make it 
> listen:
>
> 192.168.100.118:4000 instead of 127.0.0.1:4000 as it currently is.
>
> I already changed the parameters of my files local.cfg, config.prod.yml, 
> allow cors, etc/hosts etc
>
>
>
> Thank you very much in advance for any help you can give me.
>
>
>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/57e08056-671f-445f-9b86-49b61236cf01n%40googlegroups.com.
1) Settings in dspace.cfg or local.cfg:
dspace.server.url = https://dspace.example.org/server
dspace.ui.url = https://dspace.example.org
solr.server = http://localhost:8983/solr

2) Settings in config.prod.yml:
ui:
  ssl: false  
  host: localhost
  port: 4000
  nameSpace: /

rest:
  ssl: true
  host: dspace.example.org
  port: 443
  nameSpace: /server

3) a2enmod proxy_http proxy_html ssl headers
4) a2dissite 000-default default-ssl
5) vi /etc/apache2/sites-available/dspace.conf
<VirtualHost *:80>
     ServerName dspace.example.org
     Redirect / https://dspace.example.org
</VirtualHost>

<VirtualHost *:443>
     ServerName dspace.example.org
     LogLevel warn
     ErrorLog ${APACHE_LOG_DIR}/dspace.example.org.error.log
     CustomLog ${APACHE_LOG_DIR}/dspace.example.org.access.log combined
     ProxyRequests on
     SSLEngine on
     SSLProxyEngine on
     SSLCertificateFile /etc/letsencrypt/live/dspace.example.org/fullchain.pem
     SSLCertificateKeyFile /etc/letsencrypt/live/dspace.example.org/privkey.pem
     SSLCompression off
     SSLProtocol             all -SSLv3 -TLSv1 -TLSv1.1
     SSLCipherSuite          
ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
     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
     ProxyPass / http://localhost:4000/
     ProxyPassReverse / http://localhost:4000/

</VirtualHost>

6) a2ensite dspace.conf
7) ufw allow 'OpenSSH'
8) ufw allow 'Apache Full'
9) ufw enable
10) ufw status
11) systemctl restart apache2

Reply via email to