how to set SSL over PORT X ?

#1
hello,
we put the line
Code:
address                 *:443 *:port1 *:port2
into the file
Code:
/usr/local/lsws/conf/httpd_config.conf
but yet the browsers lounches alert when we try open
Code:
https://web:port1
or
Code:
https://web:port2
how we can fix?
what file we need edit?
thanks
 
Last edited:

Cold-Egg

Administrator
#2
The config you input is probably invalid, here's an example listener. Use web admin to setup if you aren't sure about the syntax,

Code:
listener https {
  address                 *:443
  secure                  1
  keyFile                 /usr/local/lsws/conf/example.key
  certFile                /usr/local/lsws/conf/example.crt
  map                     example example.com
}
 
Last edited:
#3
hello, we ADD this block of lines into the file
Code:
/usr/local/lsws/conf/httpd_config.conf
Code:
listener https {
  address                 *:3451
  secure                  1
  keyFile                 /etc/letsencrypt/live/hostname.midomain.com/privkey.pem
  certFile                /etc/letsencrypt/live/hostname.midomain.com/fullchain.pem
  map                     example example.com
}
also we restart LSWS but nothing change.

What we can do for open WITH SSL the URLs:
Code:
https://dmain:number_portA
and
Code:
https://dmain:number_portB
???
 
#5
thanks master by your help, finally from the file
Code:
/usr/local/lsws/conf/httpd_config.conf
following yours instructions we take this fragment of code:
Code:
listener SSL {
  address                 *:443
  secure                  1
  keyFile                  /etc/letsencrypt/live/hostname.SLD.TLD/privkey.pem
  certFile                 /etc/letsencrypt/live/hostname.SLD.TLD/fullchain.pem
  certChain               1
  sslProtocol             24
  enableECDHE             1
  renegProtection         1
  sslSessionCache         1
  enableSpdy              15
  enableStapling           1
  ocspRespMaxAge           86400
  map                     SLD.TLD SLD.TLD
}
and we "repeat" the lines with some changes:
Code:
listener MYAPP {
  map                     SLD.TLD SLD.TLD
  address                 *:8443
  secure                  1
  keyFile                  /etc/letsencrypt/live/hostname.SLD.TLD/privkey.pem
  certFile                 /etc/letsencrypt/live/hostname.SLD.TLD/fullchain.pem
}
finally we restart VPS and then "oh sorpraise!" now:
Code:
https://sld.tld:port
YES LOAD SSL but...
now NOT LOAD MY APP!, load the DEFAULT website
Code:
sld.tld
on others words, I get SSL but LOST the REAL content...

how we can fix this problem?


thanks again
 
#8
master as we say in our message #3,
SSL yes load when we put:
Code:
listener MYAPP {
  map                     SLD.TLD SLD.TLD
  address                 *:8443
  secure                  1
  keyFile                  /etc/letsencrypt/live/hostname.SLD.TLD/privkey.pem
  certFile                 /etc/letsencrypt/live/hostname.SLD.TLD/fullchain.pem
}
however load the web by default then we lost our "webapp : port"


some idea please?
 
Top