Skip to content

Digitalocean step by step guide to nginx configuration

Solved Configure

Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

  • 2 Votes
    4 Posts
    173 Views

    Seems that before FreeNGINX, there was “Angie” - a strange name for a fork of Nginx, but here it is nonetheless

    https://angie.software/en/

    Features

    Core advantages over nginx include the following:

    Supporting HTTP/3 for client connections, as well as for proxied server connections, with the ability to independently use different protocol versions (HTTP/1.x, HTTP/2, HTTP/3) on opposite sides. Automatic HTTPS provisions TLS certificates using built-in ACME support. Simplifying configuration: the location directive can define several matching expressions at once, which enables combining blocks with shared settings. Exposing basic information about the web server, its configuration, as well as metrics of proxied servers, client connections, shared memory zones, and many other things via a RESTful API interface in JSON format. Exporting statistics in Prometheus format with customizable templates. Monitoring the server through the browser with the Console Light visual monitoring tool. See the online demo: https://console.angie.software/ Automatically updating lists of proxied servers matching a domain name or retrieving such lists from SRV DNS records. Session binding mode, which directs all requests within one session to the same proxied server. Recommissioning upstream servers after a failure smoothly using the slow_start option of the server directive. Limiting the MP4 file transfer rate proportionally to its bitrate, thus reducing the bandwidth load. Extending authorization and balancing capabilities for the MQTT protocol with the mqtt_preread directive under stream. Pre-built binary packages for many popular third-party modules. Server- and client-side support for NTLS when using the TongSuo TLS library, enabled at build time.

    Judging by these new features, this specific fork seems very active with updates once per quarter.

  • 3 Votes
    4 Posts
    605 Views

    @crazycells hi - no security reason, or anything specific in this case. However, the nginx.conf I posted was from my Dev environment which uses this port as a way of not interfering with production.

    And yes, I use clustering on this site with three instances.

  • 14 Votes
    69 Posts
    5k Views

    @phenomlab

    Seems to be better with some scaling fix for redis on redis.conf. I haven’t seen the message yet since the changes I made

    # I increase it to the value of /proc/sys/net/core/somaxconn tcp-backlog 4096 # I'm uncommenting because it can slow down Redis. Uncommented by default !!!!!!!!!!!!!!!!!!! #save 900 1 #save 300 10 #save 60 10000

    If you have other Redis optimizations. I take all your advice

    https://severalnines.com/blog/performance-tuning-redis/

  • 0 Votes
    3 Posts
    262 Views

    See https://sudonix.com/topic/226/issues-getting-flarum-to-work-on-new-host/28?_=1645013723672

  • nginx can't start again

    Moved Solved Configure
    20
    2 Votes
    20 Posts
    928 Views

    @elhana-fine Yes that will happen of of course if you still choose to restart the NGINX service after making a change and the test fails. The test on it’s own will state the error and the line number allowing you to fix that first 🙂

  • nginx seo urls

    Solved Configure
    15
    3 Votes
    15 Posts
    848 Views

    @riekmedia that looks fine to me

  • Digitalocean Ubuntu configuration

    Solved Linux
    33
    12 Votes
    33 Posts
    2k Views

    @phenomlab thank you! not me 🙂

  • 18 Votes
    36 Posts
    2k Views

    you are too fast 😉