Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!