put [address *:443 *:port] into [httpd_config.conf] is correct for ADD SSL to X port ?

#1
hello,
we need ADD SSL to some ports.

how we can do it?

we edit the file
Code:
/usr/local/lsws/conf/httpd_config.conf
and we change the line
Code:
address                 *:443
by the line
Code:
address                 *:443 *:P1 *:P2
we restart all but website:p1 and website:p2 yet NOT LOAD with SSL.

What we can do ?

the "trick" is in other file?


thanks!
 

Cold-Egg

Administrator
#2
To open more listeners on those ports, here's an example. 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
}
 

Cold-Egg

Administrator
#4
add more listeners, e.g.

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
}
listener http {
  address                 *:80
  secure                  0
  map                     example example.com
}
 
Top