Jump to content

jaimetal20

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jaimetal20's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Yeah the root folder needed 755 permission! That's why it was being blocked. Thank you so much, it's working now!
  2. Well I after making some edits to apache2.conf I make it able to read the port but I got now: Forbidden You don't have permission to access /index.html on this server. Server unable to read htaccess file, denying access to be safe While "AllowOverride None" is already set and file access is already 755.
  3. Yeah I have a VPS. Thanks for that link, I've managed to make it listen to 22080 port. The problem I have now is that when I try to access through that port I get this error when I try to access "x.x.x.x:22080/index.html" (i use that html for testing) Forbidden You don't have permission to access /index.html on this server. Apache/2.4.25 (Debian) Server at x.x.x.x Port 22080 I've set as DocumentRoot the folder on "/root/mtasa/mtasa-server/mods/deathmatch/resources/[maps]" And this is what I set in apache2.conf: <Directory /root/mtasa/mtasa-server/mods/deathmatch/resources/[maps]/> AllowOverride None Require all granted </Directory> I've also tried to use playSound to listen a mp3 inside that folder but didnt work either.
  4. 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.
  5. Hola buenas, necesito saber si hay alguna forma (o mas bien, que me brinden un ejemplo) de acceder a los archivos que esten dentro de la carpeta root del VPS, mi idea inicial es, en lugar de descargar archivos (como canciones mp3 y archivos .map), leerlos directamente a través de scripting para evitar que la descarga sea muy pesada. Dentro del servidor de mta tengo una carpeta con todos los mapas "[maps]" divididos entre sus gamemodes. En el caso de la musica simplemente acceder a ella utilizando este codigo (solo es un ejemplo): local fileloader = {} fileloader.ip = "127.0.0.1" --ejemplo function fileloader.load(gamemode, mapname, path) if mapname then playSound("http://"..(fileloader.ip).."/[maps]/["..gamemode.."]/"..mapname.."/"..path) end end es posible hacer algo asi con la carpeta root? y si es posible podrian darme un ejemplo?
×
×
  • Create New...