struct nginx_http_server

Overview

HTTP server settings More…

#include <conf_nginx.h>

struct nginx_http_server {
    // fields

    char* name;
    char* hostname;
    char* ssl_name;
    bool access_log_enable;
    char* access_log_path;
    char* mime_type_default;
    unsigned int keepalive_timeout;
    unsigned int keepalive_requests;
    unsigned int send_timeout;
    bool sendfile;
    bool tcp_nopush;
    bool tcp_nodelay;
    bool reset_timedout_conn;
    nginx_server_tokens_mode tokens_mode;
    nginx_http_client client;
    nginx_http_proxy proxy;
    nginx_http_file_cache file_cache;

    // methods

    LIST_ENTRY(nginx_http_server);
    LIST_HEAD(nginx_http_loc);
    LIST_HEAD(nginx_http_listen_entry);
};

Detailed Documentation

HTTP server settings

Fields

char* name

Friendly name

char* hostname

Server hostname pattern

char* ssl_name

SSL settings object instance name

bool access_log_enable

Enable access logging

char* access_log_path

Path to access log file on TA

char* mime_type_default

Default MIME type

unsigned int keepalive_timeout

Timeout in seconds for keep-alive client connection

unsigned int keepalive_requests

Maximum number of requests for one keep-alive connection

unsigned int send_timeout

Timeout for transmitting a response

bool sendfile

Whether sendfile() should be used

bool tcp_nopush

Whether TCP_NOPUSH socket option should be used

bool tcp_nodelay

Whether TCP_NODELAY socket option should be used

bool reset_timedout_conn

Whether timed out connections should be reset

nginx_server_tokens_mode tokens_mode

Server presentation mode

nginx_http_client client

Client handling settings

nginx_http_proxy proxy

Proxy settings

nginx_http_file_cache file_cache

File cache settings

Methods

LIST_ENTRY(nginx_http_server)

Linked list of servers

LIST_HEAD(nginx_http_loc)

HTTP locations

LIST_HEAD(nginx_http_listen_entry)

Listening entries