You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I try to enable https access on the phpmyadmin docker and redirect all http request on https. Here is what I've done
/etc/apache2/ports.conf : I listen ports 80 and 443
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 80
Listen 443
/etc/apache2/sites-enabled/ssl.conf : enable mod_ssl and specifying my cert and key
I use the DockerFile to update these files in the container and enabling the rewrite mod:
FROM phpmyadmin:5.2.1
RUN mv /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
ADD 000-default.conf /etc/apache2/sites-enabled/000-default.conf
ADD ssl.conf /etc/apache2/sites-enabled/ssl.conf
ADD ports.conf /etc/apache2/ports.conf
Well... It seems to work. But I would appreciate some feedback to confirm that this solution is clean and maintainable enough or if we have better solution to do that.
Thanks!
The text was updated successfully, but these errors were encountered:
You're right, thanks.
If no other feedback, then I will close this issue and use this solution, will see with time if it respond completely to my needs ;)
I would also say it's not necessary to do a Dockerfile, you can mount the files directly and it will work
That said it would be good to find another way to not use mod rewrite
Hello!
I try to enable https access on the phpmyadmin docker and redirect all http request on https. Here is what I've done
/etc/apache2/ports.conf : I listen ports 80 and 443
/etc/apache2/sites-enabled/ssl.conf : enable mod_ssl and specifying my cert and key
port mapping of my docker-compose:
/etc/apache2/sites-enabled/000-default.conf : I set my redirection
I use the DockerFile to update these files in the container and enabling the rewrite mod:
Well... It seems to work. But I would appreciate some feedback to confirm that this solution is clean and maintainable enough or if we have better solution to do that.
Thanks!
The text was updated successfully, but these errors were encountered: