diff --git a/Dockerfile b/Dockerfile
index ff2f634..39d5e7b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,10 +1,7 @@
-FROM docker.valuya.be/apache2:28
+FROM docker.charlyghislain.com/front-apache:2.4.39-a
ARG CLANG=en
-RUN a2ensite default \
- && a2enmod rewrite
-
-ADD docker/app-content.conf /etc/apache2/
+ADD docker/httpd.conf /var/run/httpd/charlyghislaindotcom.conf
ADD dist/${CLANG}/ /var/www/html/
ENV LANG=$CLANG
diff --git a/Jenkinsfile b/Jenkinsfile
index 0295c80..76065aa 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -54,14 +54,14 @@ pipeline {
container('docker') {
unstash(name: 'dist')
script {
- VERSION = sh(script: 'head -n1 dist/.version', returnStdout: true).trim()
- def fr = docker.build("${params.REPO}/${params.IMAGE}-fr:${VERSION}", "--build-arg CLANG=fr .")
- def en = docker.build("${params.REPO}/${params.IMAGE}-en:${VERSION}", "--build-arg CLANG=en .")
+ VERSION = sh(script: 'head -n1 dist/.version', returnStdout: true).trim()
+ def fr = docker.build("${params.REPO}/${params.IMAGE}-fr:${VERSION}", "--build-arg CLANG=fr .")
+ def en = docker.build("${params.REPO}/${params.IMAGE}-en:${VERSION}", "--build-arg CLANG=en .")
- fr.push()
- fr.push('latest')
- en.push()
- en.push('latest')
+ fr.push()
+ fr.push('latest')
+ en.push()
+ en.push('latest')
}
}
}
diff --git a/docker/app-content.conf b/docker/app-content.conf
deleted file mode 100644
index 5504524..0000000
--- a/docker/app-content.conf
+++ /dev/null
@@ -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]
-
diff --git a/docker/httpd.conf b/docker/httpd.conf
new file mode 100644
index 0000000..5b7c9fd
--- /dev/null
+++ b/docker/httpd.conf
@@ -0,0 +1,55 @@
+
+
+ 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]
+
+
+
+
+
+ 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]
+
+
+
+
+
+ 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]
+
+
+