Enable .htaccess support in Apache container
All checks were successful
WHP Default Container / Build-and-Push (push) Successful in 14s

- Modified Dockerfile to set AllowOverride All for htdocs directory
- Enabled mod_rewrite module for common .htaccess functionality
- Added CLAUDE.md with project documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-23 19:08:06 -07:00
parent da058d92dc
commit 03be2342d1
2 changed files with 62 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
FROM httpd:alpine
# Enable .htaccess files by modifying Apache configuration
RUN sed -i '/<Directory "\/usr\/local\/apache2\/htdocs">/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /usr/local/apache2/conf/httpd.conf
# Enable mod_rewrite module (commonly used in .htaccess)
RUN sed -i 's/#LoadModule rewrite_module/LoadModule rewrite_module/' /usr/local/apache2/conf/httpd.conf
# Copy the default landing page to the container
COPY index.html /index.html
RUN rm -f /usr/local/apache2/htdocs/index.html