No I don't think we tried HTTPS with nginx before. We need to first check how to configure SSL certificates with a standalone nginx. Then decide how to add that configuration to the stratos nginx extension.
If this can be done with a global configuration we can update the nginx configuration template to add it. If not we will need to introduce a new feature to include SSL configurations for each server block if the port mapping is done for HTTPS protocol. On Tue, Aug 25, 2015 at 12:16 PM, Anuruddha Premalal < anuruddhaprema...@gmail.com> wrote: > As a quick fix I changed the extension code to get-rid of https ports > being appended to the configuration. > > This is not needed, you can simply remove the HTTPS port mapping from the cartridge. > > [2] http://nginx.org/en/docs/http/configuring_https_servers.html > [1] nginx: [emerg] unknown directive "https" in /tmp/nginx.cfg:5 > > at org.apache.stratos.nginx.extension.Nginx.start(Nginx.java:92) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.configureAndStart(LoadBalancerExtension.java:247) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension.access$100(LoadBalancerExtension.java:46) > at > org.apache.stratos.load.balancer.extension.api.LoadBalancerExtension$1.onEvent(LoadBalancerExtension.java:184) > at > org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42) > at java.util.Observable.notifyObservers(Observable.java:159) > at > org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51) > at > org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor.process(CompleteTopologyMessageProcessor.java:69) > at > org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:61) > at > org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator.run(TopologyEventMessageDelegator.java:73) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:744) > Caused by: java.lang.RuntimeException: Command execution failed: > nginx: [emerg] unknown directive "https" in /tmp/nginx.cfg:5 > > > Regards > -- > *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail > : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web : > www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.* > -- Imesh Gunaratne Senior Technical Lead, WSO2 Committer & PMC Member, Apache Stratos