I only need to serve the .vmdk and .vmx files on the virtual server, no matter what directory level. This is my current configuration (now it serves everything, but if I uncomment the bottom, it does not serve anything):
server { listen 80; server_name vmdk; access_log /var/log/nginx/localhost.access.log; root /srv/vmdk/public; location ~ (./?|\vmdk|\vmx)$ { autoindex on; }
How do I achieve this?
If Apache is easier to achieve, then an example Apache configuration will also be appreciated.
user2787959
source share