mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
fix(server) add redirection port
This commit is contained in:
parent
ea7445cea0
commit
12073ee5eb
1 changed files with 3 additions and 2 deletions
|
|
@ -101,11 +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;
|
||||
var lHost = pReq.headers.host,
|
||||
lURL = lHTTPS + lHost + pReq.url + ':' + lSSLPort;
|
||||
|
||||
main.redirect({
|
||||
response: pRes,
|
||||
url: lHTTPS + lHost + pReq.url
|
||||
url: lURL
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue