mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
fix(server) redirect port
This commit is contained in:
parent
12073ee5eb
commit
1ed9b01f54
1 changed files with 6 additions and 2 deletions
|
|
@ -101,8 +101,12 @@
|
|||
Util.log('* Redirection http -> https is setted up');
|
||||
lServerLog(lHTTP, lPort);
|
||||
var lRedirectServer = http.createServer( function(pReq, pRes) {
|
||||
var lHost = pReq.headers.host,
|
||||
lURL = lHTTPS + lHost + pReq.url + ':' + lSSLPort;
|
||||
var lURL,
|
||||
lHost = pReq.headers.host,
|
||||
lParsed = URL.parse(lHost),
|
||||
lHostName = lParsed.protocol;
|
||||
|
||||
lURL = lHTTPS + lHostName + lSSLPort + pReq.url;
|
||||
|
||||
main.redirect({
|
||||
response: pRes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue