Hello, I'm trying to access maps's files (songs specifically) in order to later use them with playSound function (i.e playSound("http://ip:22080/mapname/song.mp3") ). I do not want to fetch all the maps files, I just want a way to stream map's songs instead of download them on clients, reducing map download size.
I spent a lot of hours looking for a lot of ways to open 22080 port with DomainRoot folder to "/root/mtasa/mtasa-server/mods/deathmatch/resources/[maps]" but whatever I do the url "ip:22080" is always inaccessible getting "ERR_CONNECTION_REFUSED" when opening it on browser.
This is my setup:
<VirtualHost *:22080>
DocumentRoot /root/mtasa/mtasa-server/mods/deathmatch/resources/[maps]
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I'm not sure if i'm doing it correctly, I hope you guys can help, I've already setup everything and this is just the last thing I need. As I said, I'm not looking for making a web server for download resources, I just want to fetch music files from maps.