Fix
This commit is contained in:
parent
2135e81aec
commit
8427034876
|
@ -1,8 +1,11 @@
|
||||||
FROM docker.charlyghislain.com/front-apache:2.4.39-a
|
FROM docker.charlyghislain.com/front-apache:2.4.39-a
|
||||||
ARG CLANG=en
|
ARG CLANG=en
|
||||||
|
|
||||||
ADD docker/httpd.conf /var/run/httpd/charlyghislaindotcom.conf
|
|
||||||
ADD dist/${CLANG} /var/www/
|
ADD dist/${CLANG} /var/www/
|
||||||
|
ADD docker/httpd.conf /var/run/httpd.conf.tmp
|
||||||
|
RUN apk add gettext \
|
||||||
|
&& mkdir /var/run/httpd \
|
||||||
|
&& cat /var/run/httpd.conf.tmp | envsubst > /var/run/httpd/charlyghislaindotcom.conf
|
||||||
|
|
||||||
ENV LANG=$CLANG
|
ENV LANG=$CLANG
|
||||||
HEALTHCHECK --interval=10s --timeout=3s \
|
HEALTHCHECK --interval=10s --timeout=3s \
|
||||||
|
|
|
@ -13,14 +13,11 @@ DocumentRoot /var/www
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
# If for an existing subpath, redirect to index
|
# If for an existing subpath, redirect to index
|
||||||
RewriteCond %{REQUEST_URI} "^/en/"
|
RewriteCond %{REQUEST_URI} "^/${CLANG}/"
|
||||||
RewriteRule ^ /en/index.html [L]
|
RewriteRule ^ /${CLANG}/index.html [L]
|
||||||
|
|
||||||
RewriteCond %{REQUEST_URI} "^/fr/"
|
|
||||||
RewriteRule ^ /fr/index.html [L]
|
|
||||||
|
|
||||||
# If the requested resource doesn't exist, use index.html
|
# If the requested resource doesn't exist, use index.html
|
||||||
RewriteRule ^ /fr/ [L,R]
|
RewriteRule ^ /${CLANG}/ [L,R]
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user