443 configuration issue on environment.prod.ts

32 views
Skip to first unread message

Joshua Kim

unread,
Dec 10, 2021, 12:01:39 PM12/10/21
to dspac...@googlegroups.com
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


Reply all
Reply to author
Forward
0 new messages