Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.86 KB | None | 0 0
  1.  
  2. #user html;
  3. worker_processes  1;
  4.  
  5. #error_log  logs/error.log;
  6. #error_log  logs/error.log  notice;
  7. #error_log  logs/error.log  info;
  8.  
  9. #pid        logs/nginx.pid;
  10.  
  11.  
  12. events {
  13.     worker_connections  1024;
  14. }
  15.  
  16.  
  17. http {
  18.     include       mime.types;
  19.     default_type  application/octet-stream;
  20.  
  21.     #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
  22.     #                  '$status $body_bytes_sent "$http_referer" '
  23.     #                  '"$http_user_agent" "$http_x_forwarded_for"';
  24.  
  25.     #access_log  logs/access.log  main;
  26.  
  27.     sendfile        on;
  28.     #tcp_nopush     on;
  29.  
  30.     #keepalive_timeout  0;
  31.     keepalive_timeout  65;
  32.  
  33.     #gzip  on;
  34.     server {
  35.         listen 80;
  36.         server_name localhost;
  37.         root /usr/share/webapps/mediawiki;
  38.         index index.php;
  39.         charset utf-8;
  40.         # For correct file uploads
  41.         client_max_body_size    100m; # Equal or more than upload_max_filesize in /etc/php/php.ini
  42.         client_body_timeout     60;
  43.         include mediawiki.conf;
  44.       }
  45.  
  46.  
  47.     # another virtual host using mix of IP-, name-, and port-based configuration
  48.     #
  49.     #server {
  50.     #    listen       8000;
  51.     #    listen       somename:8080;
  52.     #    server_name  somename  alias  another.alias;
  53.  
  54.     #    location / {
  55.     #        root   html;
  56.     #        index  index.html index.htm;
  57.     #    }
  58.     #}
  59.  
  60.  
  61.     # HTTPS server
  62.     #
  63.     #server {
  64.     #    listen       443 ssl;
  65.     #    server_name  localhost;
  66.  
  67.     #    ssl_certificate      cert.pem;
  68.     #    ssl_certificate_key  cert.key;
  69.  
  70.     #    ssl_session_cache    shared:SSL:1m;
  71.     #    ssl_session_timeout  5m;
  72.  
  73.     #    ssl_ciphers  HIGH:!aNULL:!MD5;
  74.     #    ssl_prefer_server_ciphers  on;
  75.  
  76.     #    location / {
  77.     #        root   html;
  78.     #        index  index.html index.htm;
  79.     #    }
  80.     #}
  81.  
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement