Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:20:55+00:00 2026-06-13T09:20:55+00:00

How do you specify a different subdomain for secure content: i.e. in the security.yml

  • 0

How do you specify a different subdomain for secure content: i.e. in the security.yml file I have the following under the access_control: section:

- { path: ^/Account/Login, access: isAnonymous(), requires_channel: https }

That’s all fine for my development environment, because I have a self-signed wildcard certificate. In reality in my production environment for this particular website I have an existing SSL certificate that I’d like to use instead of buying another.

So, say my website is http://www.somesite.com/ and the secure stuff needs to be accessed at https://secure.somesite.com/… How do I tell Symfony2 to go to there instead?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:20:56+00:00Added an answer on June 13, 2026 at 9:20 am

    Hopefully hostname based routes is a feature that will be available in Symfony 2.2 . Take a look at this Pull Request.

    When the time comes you will be able to force HTTPS for different URLS (as you are doing now), and adding hostname requirements for your routes. Both things combined would let you use a separate subdomain for HTTPS connections.

    In the meanwhile, if you cant wait for this feature to come, you can give this blog article a try.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know you can specify a different layout file for orientation by creating a
I need to specify different output and intermediate folders in my .pro file for
In Visual Studio, you can specify different project properties for the Release and Debug
In C++, a subclass can specify a different return type when overriding a virtual
How to use different texture(image) for different resolution in libGDX? Also specify how to
How do I specify the following requirement in my html? When the computer has
Is it possible to specify different access modifiers for property getter and setter using
I'd like to be able to specify different verbose level, by adding more -v
Background. I'm working with netlists , and in general, people specify different hierarchies by
Mobile Safari on the iPhone allows you to specify different keyboard types for text

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.