Browse Source

add .htaccess to symfony

olinox14 2 years ago
parent
commit
a232c67a45
2 changed files with 3 additions and 2 deletions
  1. 1 0
      docker/api/Dockerfile
  2. 2 2
      docker/caddy/caddy/Caddyfile

+ 1 - 0
docker/api/Dockerfile

@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y --fix-missing \
 COPY /docker/api/vhost.conf /etc/apache2/sites-available/vhost.conf
 
 RUN a2ensite vhost.conf; \
+    a2enmod rewrite; \
     service apache2 start;
 
 RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; \

+ 2 - 2
docker/caddy/caddy/Caddyfile

@@ -4,7 +4,7 @@
 
 local.api.ossatura.net {
   tls internal
-  reverse_proxy http://api:80
+  reverse_proxy api:80
   log {
     output file /var/log/api-access.log {
       roll_size 10mb
@@ -15,7 +15,7 @@ local.api.ossatura.net {
 
 local.app.ossatura.net {
   tls internal
-  reverse_proxy http://app:3002
+  reverse_proxy app:3002
   log {
     output file /var/log/app-access.log {
       roll_size 10mb