Jump to content
  • 0

How to use http-client-files in Windows server


ChineseLs

Question

I come from China English is not very good Can I use the translation tools to talk to you :D The problem is like this In setting up mtaserver. Conf -- -- < httpdownloadurl > < / httpdownloadurl > encountered problems

{When you launch the server, the directory /mods/deathmatch/resource-cache/http-client-files will contain the correct client files for hosting on an external web server. If the web server is on the same machine, you can simply link the appropriate web server directory to http-client-files. If the web server is on a separate machine, ensure it has access to http-client-files via a network path, or maintain a remote copy using synchronization software.}

I didn't understand wiki My server is with the web server how to link the HTTP client - files Hope someone can read :D

Link to comment

5 answers to this question

Recommended Posts

  • 0
  • MTA Team

Assuming your web server document root folder is: C:\Inetpub\wwwroot

and your MTA server install path is: C:\Program Files (x86)\MTA San Andreas 1.5\server

1. Create a new file called makelink.bat with the following content:

set SOURCE="C:\Inetpub\wwwroot\blah" 
set DEST="C:\Program Files (x86)\MTA San Andreas 1.5\server\mods\deathmatch\resource-cache\http-client-files" 
mklink /j %SOURCE% %DEST% 
pause 

2. Right click on makelink.bat and select "Run as administrator"

3. Check C:\Inetpub\wwwroot\blah in Windows Explorer (It should be a link to http-client-files)

4. Use this in mtaserver.conf:

<httpdownloadurl>http://your_server_ip/blah</httpdownloadurl> 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...