unable to set up ssl

13 views
Skip to first unread message

James Will

unread,
Oct 1, 2025, 7:32:29 AM (11 days ago) Oct 1
to dspac...@googlegroups.com
hi, i'm having trouble setting up SSL in dspace 9.1
i have the following configurations
after doing everything when i try to access it via domain, it does not open
i have this configuration in apache virtualhost file
<VirtualHost *:443>
    ServerName mydomain.ac.in

    ProxyPreserveHost On
    RequestHeader set X-Forwarded-Proto https
   
    SSLEngine on
    SSLCertificateFile /etc/ssl/certificate.crt
    SSLCertificateKeyFile /etc/ssl/certificate.key
   
    # Proxy for Angular UI
    ProxyPreserveHost On
    ProxyPass / http://localhost:4000/
    ProxyPassReverse / http://localhost:4000/

    # Proxy for REST API (DSpace backend)
    ProxyPass /server http://localhost:8080/server
    ProxyPassReverse /server http://localhost:8080/server

    ErrorLog ${APACHE_LOG_DIR}/dspace_error.log
    CustomLog ${APACHE_LOG_DIR}/dspace_access.log combined
</VirtualHost>

this is in local.cfg
dspace.server.url = https://mydomain.ac.in/server
dspace.ui.url = https://mydomain.ac.in


and this is in config.prod.yml
ui:
  ssl: false
  host: localhost
  port: 4000

rest:
  ssl: true
  host: mydomain.ac.in
  port: 443



habibi

unread,
Oct 1, 2025, 12:39:22 PM (10 days ago) Oct 1
to James Will, dspac...@googlegroups.com
Hi,
Move " Proxies for REST API  " above the"Proxies for Angular UI", everything will be fine.

--
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 dspace-tech...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/CACYTwSmHG5J_FKvugZHR2DNG7cSOtFDXcjnuUEAKvW%3DGMrOE1A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages