HTTPServer: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:


== What is the built-in HTTP Server? ==
== What is the built-in HTTP Server? ==
The GTA Connected server provides a built-in HTTP server which used to distribute client-side resource files to clients when they connect to the server (like audio, images, etc ... ''not'' scripts though).  
The GTA Connected server provides a built-in HTTP server which is used to distribute client-side resource files to clients when they connect to the server (like audio, images, etc ... ''not'' scripts though).  


== Do I need it? ==
== Do I need it? ==
Line 13: Line 13:
== For advanced users ==
== For advanced users ==
Turning off the built-in HTTP server is typically for server owners or hosts that want to use another HTTP service like [https://httpd.apache.org/ apache2] or [https://nginx.org/en/ nginx] to distribute the client resource files. This can also help improve performance of the host machine if you want to do any of the following:
Turning off the built-in HTTP server is typically for server owners or hosts that want to use another HTTP service like [https://httpd.apache.org/ apache2] or [https://nginx.org/en/ nginx] to distribute the client resource files. This can also help improve performance of the host machine if you want to do any of the following:
* Run than one server using the same resources
* Run more than one server using the same resources
* Tweak how the HTTP service distributes the files (connection/bandwidth limits, firewall, etc)
* Tweak how the HTTP service distributes the files (connection/bandwidth limits, firewall, etc)
* Not load any resources that contain client-side files.
* Not load any resources that contain client-side files.


You can also change the HTTP url using the <httpurl> in your server configuration. This will make clients that connect to the server use that URL to grab the client resource files. This is useful if you want to use a [https://en.wikipedia.org/wiki/Content_delivery_network CDN]
You can also change the HTTP url using the <httpurl> in your server configuration. This will make clients that connect to the server use that URL to grab the client resource files. This is useful if you want to use a [https://en.wikipedia.org/wiki/Content_delivery_network CDN]

Latest revision as of 22:06, 25 August 2022


What is the built-in HTTP Server?

The GTA Connected server provides a built-in HTTP server which is used to distribute client-side resource files to clients when they connect to the server (like audio, images, etc ... not scripts though).

Do I need it?

If you're hosting from your PC at home, the answer is most likely yes.

How can I turn it on/off?

In your server configuration, change the <httpserver> option to false to turn it off, or true to turn it on. The server must be restarted for these changes to take effect.

For advanced users

Turning off the built-in HTTP server is typically for server owners or hosts that want to use another HTTP service like apache2 or nginx to distribute the client resource files. This can also help improve performance of the host machine if you want to do any of the following:

  • Run more than one server using the same resources
  • Tweak how the HTTP service distributes the files (connection/bandwidth limits, firewall, etc)
  • Not load any resources that contain client-side files.

You can also change the HTTP url using the <httpurl> in your server configuration. This will make clients that connect to the server use that URL to grab the client resource files. This is useful if you want to use a CDN