Giter Club home page Giter Club logo

Comments (2)

szhu25 avatar szhu25 commented on July 21, 2024

My Nginx Conf file.

user nginx;
worker_processes 2;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;

load_module "/usr/lib64/nginx/modules/nginx-ct-master/ngx_http_ssl_ct_module.c";
load_module "/usr/lib64/nginx/modules/nginx-ct-master/ngx_ssl_ct_module.c";

events {
worker_connections 4096;
multi_accept on;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile        on;
#tcp_nopush     on;

keepalive_timeout  65;

gzip on;
gzip_disable "msie6";

gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon;

include /etc/nginx/conf.d/*.conf;

load_module modules/ngx_ssl_ct_module.c;

include /etc/nginx/sites-enabled/*.conf;
server_names_hash_bucket_size 64;

}

from nginx-ct.

grahamedgecombe avatar grahamedgecombe commented on July 21, 2024

You need to compile nginx yourself to use the module (even if you use the dynamic module - nginx doesn't support out of tree builds of dynamic modules yet).

There should be plenty of guidance on how to do this on the Internet - e.g. https://www.vultr.com/docs/how-to-compile-nginx-from-source-on-centos-7 is the first one listed in Google for CentOS 7.

You'll need to add --add-module=/path/to/nginx-ct or --add-dynamic-module=/path/to/nginx-ct to the end of the ./configure command during the build.

from nginx-ct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.