silverwind / droppy

**ARCHIVED** Self-hosted file storage
BSD 2-Clause "Simplified" License
1.62k stars 195 forks source link

Apache Reverse proxy with Docker #369

Closed gerroon closed 5 years ago

gerroon commented 5 years ago

Hi

Can you please tell me how I can use the Docker install with Apache?

The docker install works great and I put this in my Apache site but all I get is an empty page

ProxyPass /droppy http://127.0.0.1:8989
ProxyPassReverse /droppy http://127.0.0.1:8989

thanks

silverwind commented 5 years ago

There is a wiki page for Apache configuration. No idea if there are any specifics about Apache in Docker, but it should get you started:

https://github.com/silverwind/droppy/wiki/Apache-reverse-proxy

gerroon commented 5 years ago

Well this is for Docker, should not everything contained? I looked into that document, but not sure if it is applicable for Docker?

silverwind commented 5 years ago

I personally prefer to run the web server outside of Docker for ease of configuration, but it is certainly an option to have it containerized too. There is a official Apache image: https://hub.docker.com/_/httpd. You will certainly have to integrate a virtual host into its configuration.

ghost commented 5 years ago

@gerroon No offense, but nobody should be using Apache anymore. It's the only webserver that's vulnerable to the devastating Slowloris DoS attack, for one. If you're working with containers, I'd recommend using either Traefik or Caddy as your reverse proxy.

silverwind commented 5 years ago

Closing, nothing to do here.