eriksoderblom / alpine-apache-php Goto Github PK
View Code? Open in Web Editor NEWAlpine based docker image with apache2 and php8
License: GNU Affero General Public License v3.0
Alpine based docker image with apache2 and php8
License: GNU Affero General Public License v3.0
# Add TransferLog after ErrorLog and set LogLevel to info
sed -i 's#^ErrorLog .*#ErrorLog "/dev/stderr"\nTransferLog "/dev/stdout"#g' /etc/apache2/httpd.conf && \
sed -i 's#^LogLevel .*#LogLevel info#g' /etc/apache2/httpd.conf && \
Ref: https://stackoverflow.com/a/45471084/5155484
My full config
# Change ErrorLog
# Add TransferLog after ErrorLog
# Re-define CustomLog and LogLevel
# Re-define CustomLog and LogLevel on ssl conf
sed -i 's#^ErrorLog .*#ErrorLog "/dev/stderr"\nTransferLog "/dev/stdout"#g' /etc/apache2/httpd.conf && \
sed -i 's#CustomLog .* combined#CustomLog "/dev/stdout" combined#g' /etc/apache2/httpd.conf && \
sed -i 's#^ErrorLog .*#ErrorLog "/dev/stderr"#g' /etc/apache2/conf.d/ssl.conf && \
sed -i 's#^TransferLog .*#TransferLog "/dev/stdout"#g' /etc/apache2/conf.d/ssl.conf && \
sed -i 's#^LogLevel .*#LogLevel info#g' /etc/apache2/httpd.conf && \
Just add apache2-ssl
package
But it requires to replace DocumentRoot
in the ssl config
sed -i 's#^DocumentRoot ".*#DocumentRoot "/htdocs"#g' /etc/apache2/conf.d/ssl.conf && \
sed -i 's/#ServerName\ www.example.com:80/ServerName\ website-domain.local:8081/' /etc/apache2/conf.d/ssl.conf && \
Love your docker and I would love to use it in one of my projects.
A GitHub license is a legal document that gives people the right to use, modify, and distribute your project. Without a GitHub license, people would not be able to legally fork and distribute your project.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.