HI,

I am working on setting up SSL on UI and Server at DSpace 7.1 on Centos 8
server. My question is after I replace the UI section as ssl:true, port:443
and REST section as ssl:true, port:443,  when I run:yarn start, I have this
error: An unhandled exception occurred: Port 443 is already in use. Use
'--port' to specify a different port. See
"/tmp/ng-gA8KcY/angular-errors.log" for further details.

However, after I replace the UI section as ssl:false, port:4000 and REST
section as ssl:true, port:443,  when I run:yarn, it works. On the web
browser, when I type https://xxxx.udel.edu, it seems to be working fine
(frontend and backend). This is right? OR should I use ssl:true and
port:443 in the UI section at the prod.ts file? If so, how can I fix the
error of "An unhandled exception occurred: Port 443 is already in use."?

For your reference,
* environment.prod.ts file
export const environment = {
  ui: {
      ssl: false,
      host: 'xxxxx.udel.edu',
      port: 4000,
      // NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
      nameSpace: '/'
  },
  rest: {
      ssl: true,
      host: 'xxxxx.udel.edu',
      port: 443,
      // NOTE: Space is capitalized because 'namespace' is a reserved
string in TypeScript
      nameSpace: '/server'
  }
};

* local.cfg file
dspace.server.url = https://xxxxx.udel.edu/server
dspace.ui.url = https://xxxxx.udel.edu

* ssl.conf file
ProxyPass /server http://xxxxx.udel.edu:8080/server
ProxyPassReverse /server http://xxxxx.udel.edu:8080/server
RequestHeader set X-Forwarded-Proto https

ProxyPass / http://xxxxx.udel.edu:4000/
ProxyPassReverse / http://xxxxx.udel.edu:4000/

----------------
Joshua Kim
Web Developer, Library IT
Library, Museums and Press
University of Delaware

-- 
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/CAOE6Kn7ggEVFXwfq7mVyowDHh5M9KQ-q2PSF3A5O5ZGqTnOr-w%40mail.gmail.com.

Reply via email to