docker-library / httpd

Docker Official Image packaging for Apache HTTP Server
https://httpd.apache.org
Apache License 2.0
310 stars 345 forks source link

mod_rewrite doesn't work on arm64 #222

Closed dzmitry-rudnouski closed 1 year ago

dzmitry-rudnouski commented 2 years ago

Dockerfile:

FROM httpd:2.4.54
RUN sed -i -e 's/^#\(LoadModule .*mod_rewrite.so\)/\1/' conf/httpd.conf

It works on amd64, but doesn't work on arm64. Error: exec /usr/local/bin/httpd-foreground: exec format error

tianon commented 2 years ago

With your exact Dockerfile and --platform linux/arm64/v8, I'm unable to reproduce. :confused: :disappointed:

dzmitry-rudnouski commented 2 years ago

Thank you, let me try.