ebebbington / denv-creator

Creates the folder structure for a docker environment based on the containers you want to use
MIT License
1 stars 0 forks source link

Fix Apache #28

Closed ebebbington closed 4 years ago

ebebbington commented 4 years ago

What Fix the configuration file content and dockerfile content for the Apache container

How Update the text blocks inside the class with the following data:

// conf
LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

<VirtualHost *:80>
  ProxyPass / http://drash_app_drash:1447/
</VirtualHost>
// dockerfile
FROM httpd:2.4

RUN apt update -y
COPY .docker/conf/apache.conf /usr/local/apache2/conf/demoapache.conf
RUN echo "\nInclude /usr/local/apache2/conf/demoapache.conf" >> /usr/local/apache2/conf/httpd.conf
RUN cat /usr/local/apache2/conf/httpd.conf

Then update the port mapping in docker compose file with: 8080:80

Why It's broken

End Result Container will build successfully

Checklist