On Tue, Aug 25, 2015 at 12:16 PM, Anuruddha Premalal < anuruddhaprema...@gmail.com> wrote:
> Hi Devs, > > I tried $subject and while starting the nginx server, it encountered the > following error[1]. I tried to find corresponding nginx docs to configure > https directive but I wasn't able to find one, the one available to > configure ssl support is [2] there's no mentioning of a https directive. > > Does any one know which prerequisites we need to have with nginx to make > use of the extension?. Has anyone tested this feature before with https > directive?. As a quick fix I changed the extension code to get-rid of https > ports being appended to the configuration. > > > [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 > Nginx may not support the SSL default.I think you need to configure the SSL module and recompile it. > > > 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.* > -- Gayan Gunarathne Technical Lead, WSO2 Inc. (http://wso2.com) Committer & PMC Member, Apache Stratos email : gay...@wso2.com | mobile : +94 775030545 <%2B94%20766819985>