Enable .htaccess support in Apache container
All checks were successful
WHP Default Container / Build-and-Push (push) Successful in 14s
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user