Fix Apache-PHP integration: Add proper httpd.conf with proxy_fcgi configuration to enable PHP-FPM communication
All checks were successful
Deploy LAMP / Deploy LAMP (push) Successful in 25s
All checks were successful
Deploy LAMP / Deploy LAMP (push) Successful in 25s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
FROM httpd:2.4-alpine
|
||||
|
||||
# Copy custom httpd.conf if needed (optional)
|
||||
# COPY httpd.conf /usr/local/apache2/conf/httpd.conf
|
||||
# Copy custom httpd.conf
|
||||
COPY conf/httpd.conf /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
# Enable Apache modules (rewrite, etc.) if needed
|
||||
RUN sed -i 's/^#\(LoadModule rewrite_module\)/\1/' /usr/local/apache2/conf/httpd.conf && \
|
||||
@@ -15,7 +15,7 @@ RUN sed -ri -e 's!/usr/local/apache2/htdocs!${APACHE_DOCUMENT_ROOT}!g' /usr/loca
|
||||
EXPOSE 80
|
||||
|
||||
# Copy virtual host configuration (will be mounted via docker-compose)
|
||||
# COPY vhosts/ /etc/apache2/sites-enabled/
|
||||
COPY vhosts/ /etc/apache2/sites-enabled/
|
||||
|
||||
# Start Apache in foreground
|
||||
CMD ["httpd-foreground"]
|
||||
Reference in New Issue
Block a user