I have a Python/CherryPy program running on port 7000. It handles it's own webserver, so I've used an Apache reverse proxy so that I can access it with mydomain.org. This works; the config is below.
I would also like Apache to serve (with Index) any files in directory /media by accessing mydomain.org/files. The purpose being to plug a USB drive into the server, it automatically gets mounted on /media/usb and I can give someone the link.
<Location />
AuthType Basic
AuthName "Secure"
AuthBasicProvider file
AuthUserFile /etc/apache2/auth
Require valid-user
Allow from 192.168.1.1/24
Satisfy Any
ProxyPass http://localhost:7000/
ProxyPassReverse http://localhost:7000/
</Location>
I'm new to Apache so could easily be confused or haven't given enough information or haven't found the right search terms. If so, please let me know .