Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

154
Vistas
Using the same codebase on two sites using Symfony but restricting one site to a very strict area

I have built a site on Symfony 4.4, let's call it redwidgets.com. Now as part of this site we have a feature we want to allow other companies to use, however we don't want them to know it's part of redwidgets.com.

I have built a page on www.redwidgets.com/stock-lookup that I have used a different template for so it's all unbranded etc. And using a ServerAlias in Apache I can see this at www.genericwidgets.com/stock-loopup

However I need to block people on www.genericwidets.com from going to other sections of the site and seeing it's part of redwidgets.com, so I would like it if they try to access the root then they'll just get a generic page.

I did think of maybe there is a way using security.yaml to identify the domain being called and restrict based on that but haven't been able to work out if that's possible.

I did think of just hosting this page in a separate site, but I am very unsure how the same database can be shared between the sites, would you have to duplicate Entities and code etc, that would sound very annoying. It can't just be separate as redwidgets.com makes large use of the relevant entities.

Currently using Symfony 4.4, Apache 2.4

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda