Files
whp-default-container/Dockerfile
jknapp 03be2342d1
All checks were successful
WHP Default Container / Build-and-Push (push) Successful in 14s
Enable .htaccess support in Apache container
- 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>
2025-07-23 19:08:06 -07:00

21 lines
712 B
Docker

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
# Copy the startup script
COPY scripts/startup.sh /startup.sh
# Make the startup script executable
RUN chmod +x /startup.sh
# Set the startup script as the entrypoint
ENTRYPOINT ["/startup.sh"]