Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##nginx.conf
- user www-data;
- worker_processes auto;
- pid /run/nginx.pid;
- events {
- worker_connections 42; #65536;
- multi_accept on;
- }
- http {
- ##
- # Basic Settings
- ##
- #charset utf-8;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- # server_tokens off;
- #Enable open file cache
- #open_file_cache max=1000 inactive=20s;
- #open_file_cache_valid 30s;
- #open_file_cache_min_uses 2;
- #open_file_cache_errors on;
- #keepalive_timeout 300;
- #send_timeout 10;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- ##
- # SSL Settings
- ##
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
- ssl_prefer_server_ciphers on;
- ##
- # Logging Settings
- ##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # Gzip Settings
- ##
- gzip on;
- gzip_disable "msie6";
- ##
- # Virtual Host Configs
- ##
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-enabled/*;
- }
- ##site-enable >> worpress
- # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name www.gfelot.xyz
- access_log /var/log/nginx/gfelot.xyz.access.log;;
- error_log /var/log/nginx/gfelot.xyz.log;
- #
- # Self signed certs generated by the ssl-cert package
- # Don't use them in a production server!
- #
- # include snippets/snakeoil.conf;
- root /var/www/html;
- # Add index.php to the list if you are using PHP
- index index.php index.html index.htm index.nginx-debian.html;
- server_name 5.135.177.59;
- location / {
- try_files $uri $uri/ /index.php?q=$uri&$args;
- }
- error_page 404 /404.html;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/share/nginx/html;
- }
- #location ~* \.css$ {
- # acces_log off;
- # expires 1M;
- # add_header Pragma public;
- # add_header Cache-Control public;
- # add_header Vary Accept-Encoding;
- #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- ocation ~ \.php$ {
- try_files $uri =404;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement