• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

205
Views
How do i add mod headers to a docker container run by wp-env?

So when i run a

wp-env start

it just hangs and localhost:8888/ returns a 500 internal server error...

this is the output from the logs..

wordpress_1 | [Thu Jul 22 06:57:21.200917 2021] [core:alert] [pid 23] [client 172.25.0.1:56210] /var/www/html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration wordpress_1 |

172.25.0.1 - [22/Jul/2021:06:57:21 +0000] "GET / HTTP/1.1" 500 801 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" wordpress_1

[Thu Jul 22 06:57:21.237441 2021] [core:alert] [pid 19] [client 172.25.0.1:56208] /var/www/html/.htaccess: Invalid command 'Header', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost:8888/ wordpress_1 |

172.25.0.1 - - [22/Jul/2021:06:57:21 +0000] "GET /favicon.ico HTTP/1.1" 500 801 "http://localhost:8888/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36"

I'm wondering where the dockerfile is in a wp-env docker image? And what should i input into dockerfile?

How do i add mod headers to apache in a wp-env docker container? Assuming that's the solution to my issue.

Sorry for the newbie question.

about 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error