zend framework2 - zf2 https route not work -


i've zf2 rest web service , route

'geo-province' => array(     'type' => 'segment',     'options' => array(        'route' => '/geo-province[/:id]',        'defaults' => array(           '__namespace__' => 'geo\controller',           'controller' => 'geoprovince',        ),     ),  ), 

if use http works fine not if use https. read need use schema type route not work , in addition it's literal route need segment type route

this new route

    'geo-province' => array(     'type' => 'schema',     'options' => array(        'route' => '/geo-province',        'scheme' => 'https',        'defaults' => array(           '__namespace__' => 'geo\controller',           'controller' => 'geoprovince',           'action'=>'index        ),     ),  ), 

how can solve?

http , https requests processed within framework equal. doesn't matter if request page on http://example.com/foo/bar or https://example.com/foo/bar if route configured like

'myroute' => array(     'type' => 'segment',     'options' => array(        'route' => '/foo[/bar]',        'defaults' => array(           'controller' => 'some\controller',           'action' => 'someaction',        ),     ),  ), 

the http scheme comes in handy when want seperate actions between http , https. if page not displayed on https requests more web service not configurated ssl , request not directed /public/index.php.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -