Skip over navigation
Documentation
You are currently viewing documentation for a previously released version of OroCommerce. See the latest long-term support version.

How to Enable https

Used application: OroPlatform 1.7

There are two ways to enable HTTPS:

Configuring Routes

If you want to secure some routes and make sure that they are always accessed via the HTTPS protocol, you can add the schemes parameter to the app/config/routing.yml file.

1
2
3
4
5
# app/config/routing.yml
acme_secure:
    resource: .
    type:     oro_auto
    schemes:  [https]

Configuring Security Config

As an alternative, you have to add the requires_channel option to the app/config/security.yml file:

1
2
3
4
5
6
7
# app/config/security.yml
# ...

access_control:
    # ...
    - { path: ^/acme, roles: ROLE_ADMIN, requires_channel: https}
    # ...

This method is better suited for cases when you need to secure certain URLs or sections of your website (URLs starting with some prefix, etc.)

Forums
Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No