Jenkins file fix

This commit is contained in:
cghislai 2021-02-15 00:53:10 +01:00
parent 3df67f9c19
commit efdf814aab
4 changed files with 64 additions and 21 deletions

View File

@ -1,10 +1,7 @@
FROM docker.valuya.be/apache2:28 FROM docker.charlyghislain.com/front-apache:2.4.39-a
ARG CLANG=en ARG CLANG=en
RUN a2ensite default \ ADD docker/httpd.conf /var/run/httpd/charlyghislaindotcom.conf
&& a2enmod rewrite
ADD docker/app-content.conf /etc/apache2/
ADD dist/${CLANG}/ /var/www/html/ ADD dist/${CLANG}/ /var/www/html/
ENV LANG=$CLANG ENV LANG=$CLANG

View File

@ -1,9 +0,0 @@
Options -Indexes -Multiviews
RewriteEngine on
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^(.*)$ /index.html [NC,L]

55
docker/httpd.conf Normal file
View File

@ -0,0 +1,55 @@
<Directory "/var/www/fr">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteCond %{REQUEST_URI} "!=/index.html" [NC]
RewriteRule ^ /index.html [L]
</Directory>
<Directory "/var/www/en">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
# If the requested resource doesn't exist, use index.html
RewriteCond %{REQUEST_URI} "!=/index.html" [NC]
RewriteRule ^ /index.html [L]
</Directory>
<Directory "/var/www">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
RewriteEngine on
# If an existing asset or directory is requested go to it as it is
RewriteCond %{REQUEST_URI} "^=/fr/"
RewriteCond %{REQUEST_URI} "^=/en/"
RewriteRule ^ - [L]
RewriteRule ^ /fr/ [L,R]
</Directory>