Container: Enable apache rewrites
This commit is contained in:
parent
6ea1646f9b
commit
3e37c05f6e
1 changed files with 4 additions and 0 deletions
|
@ -19,4 +19,8 @@ FROM httpd:alpine
|
|||
# No access logs
|
||||
RUN sed -i 's/LoadModule log_config_module modules\/mod_log_config.so//g' /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
# Enable rewrite
|
||||
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf
|
||||
RUN sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf
|
||||
|
||||
COPY --from=build /usr/src/app/public/ /usr/local/apache2/htdocs/
|
||||
|
|
Loading…
Add table
Reference in a new issue