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

184
Vistas
Conditional statement in Apache-config

I am trying to write apache conf file**(000-default.conf)**, but an issue is that this file will be used to run app both in localhost and hosted servers. So, the SSL config needs to be on only when the app is running on hosted servers.

I thought to make use of environment variable in .env file and put and If condition like:

if($_ENV(APP_ENV)!="local")

then SSL Engine should be on.

enter image description here

But I can't find a way to get the value of variable set in my .env file of project. Can anyone please help ?

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