Skip to content
Snippets Groups Projects
Commit f265f017 authored by Simen Vevik's avatar Simen Vevik
Browse files

Open port 80 on client so it can redirect http to https

parent 86bf05b4
No related branches found
No related tags found
1 merge request!4Dev
...@@ -48,7 +48,7 @@ RUN echo "LoadModule rewrite_module modules/mod_rewrite.so" >> /usr/local/apache ...@@ -48,7 +48,7 @@ RUN echo "LoadModule rewrite_module modules/mod_rewrite.so" >> /usr/local/apache
RUN echo "ServerName beta-katalog.it.ntnu.no" >> /usr/local/apache2/conf/httpd.conf RUN echo "ServerName beta-katalog.it.ntnu.no" >> /usr/local/apache2/conf/httpd.conf
### 2.5 Open ports and start apache ### 2.5 Open ports and start apache
# Open the container port to listen to 443 # Open the container ports
EXPOSE 443 EXPOSE 443 80
# Start apache webserver # Start apache webserver
CMD ["apachectl", "-D", "FOREGROUND"] CMD ["apachectl", "-D", "FOREGROUND"]
\ No newline at end of file
...@@ -41,6 +41,7 @@ services: ...@@ -41,6 +41,7 @@ services:
restart: always restart: always
ports: ports:
- "443:443" - "443:443"
- "80:80"
volumes: volumes:
- ./client:/client - ./client:/client
- /client/node_modules - /client/node_modules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment