Category : apache2

Im facing issues getting apache2 to work within docker and to serve as a reverse proxy towards another docker container that is running a Python based API. My Dockerfile FROM httpd:latest COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf EXPOSE 80 httpd.conf: Listen 80 <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ </VirtualHost> LoadModule headers_module modules/mod_headers.so LoadModule authn_file_module ..

Read more

I just set-up a WordPress development environment with Docker and after restarting Docker I can no longer access the localhost:8000 given I am prompted with Forbidden You don’t have permission to access this resource. Apache/2.4.38 (Debian) Server at localhost Port 8000 This is my docker-compose.yml version: "3.9" services: db: image: mysql:5.7 container_name: database volumes: – ..

Read more

I’ve got the following docker file: FROM wordpress:5.6.2 ADD mylog.conf /etc/apache2/conf-available/ RUN ln -sf /etc/apache2/conf-available/mylog.conf /etc/apache2/conf-enabled/mylog.conf The mylog.conf file is: LogFormat "%{%s}t"%U"%s"%D"%D"%{X-Forwarded-For}i" mylog CustomLog "${APACHE_LOG_DIR}/my.log" mylog When I run the docker, my.log file is created, but when I refresh my browser, it remains empty (0 bytes) while access.log gets data. My apache runs in the ..

Read more