Guest User

Untitled

a guest
Jun 21st, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. #deep web site
  2. server {
  3. listen 127.0.0.1:8080 default_server;
  4. server_name "hostname".onion;
  5.  
  6. root /var/lib/tor/hidden_service/myrootdir; # inside there is index.html with HelloWorld
  7. index index.html index.htm;
  8.  
  9. location / {
  10. allow 127.0.0.1;
  11. deny all;
  12.  
  13. }
  14. }
  15.  
  16.  
  17. #clear net site
  18. server {
  19. listen 80 default_server;
  20. listen [::]:80 default_server;
  21.  
  22. listen 443 default ssl default_server;
  23. listen [::]:443 default ssl default_server;
  24. ssl_certificate /etc/nginx/ssl/clearnetsite.pem;
  25. ssl_certificate_key /etc/nginx/ssl/clearnetsite.key;
  26.  
  27. root /var/www/html;
  28.  
  29. # Add index.php to the list if you are using PHP
  30. index index.php index.html index.htm;
  31.  
  32. server_name clearnetsite.it www.clearnetsite.it;
  33.  
  34. location / {
  35. try_files $uri $uri/ /index.php?$args;
  36. fastcgi_split_path_info ^(.+.php)(/.+)$;
  37. }
  38.  
  39.  
  40. location ~ .php$ {
  41. try_files $uri =404;
  42. fastcgi_split_path_info ^(.+.php)(/.+)$;
  43. fastcgi_pass unix:/var/run/php5-fpm.sock;
  44. fastcgi_index index.php;
  45. include /etc/nginx/fastcgi.conf;
  46. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  47. }
  48.  
  49. location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
  50. expires 365d;
  51. }
  52.  
  53. location ~* .(pdf)$ {
  54. expires 30d;
  55. }
  56.  
  57.  
  58.  
  59. client_body_buffer_size 10K;
  60. client_header_buffer_size 1k;
  61. client_max_body_size 8m;
  62.  
  63. client_body_timeout 8;
  64. client_header_timeout 8;
  65. keepalive_timeout 11;
  66. send_timeout 8;
  67. }
  68.  
  69.  
  70. #this is to block each request through my ipserver
  71. server {
  72. listen 80;
  73. listen [::]:80;
  74. server_name localhost myip;
  75. return 444;
  76. }
  77.  
  78. user www-data;
  79. worker_processes auto;
  80. worker_rlimit_nofile 100000;
  81. error_log /var/log/nginx/error.log crit;
  82. pid /run/nginx.pid;
  83.  
  84. events {
  85. worker_connections 4000;
  86. use epoll;
  87. multi_accept on;
  88. }
  89.  
  90. http {
  91.  
  92. ##
  93. # Basic Settings
  94. ##
  95.  
  96. sendfile on;
  97. tcp_nopush on;
  98. tcp_nodelay on;
  99. types_hash_max_size 2048;
  100. server_tokens off;
  101.  
  102. include /etc/nginx/mime.types;
  103. default_type application/octet-stream;
  104.  
  105. ##
  106. # SSL Settings
  107. ##
  108.  
  109. ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
  110. ssl_prefer_server_ciphers on;
  111.  
  112. open_file_cache max=200000 inactive=20s;
  113. open_file_cache_valid 30s;
  114. open_file_cache_min_uses 2;
  115. open_file_cache_errors on;
  116.  
  117. ##
  118. # Logging Settings
  119. ##
  120.  
  121. access_log /var/log/nginx/access.log;
  122.  
  123. ##
  124. # Gzip Settings
  125. ##
  126.  
  127. gzip on;
  128. gzip_min_length 1000;
  129. #gzip_min_length 10240;
  130. gzip_proxied expired no-cache no-store private auth;
  131. gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/json application/xml;
  132. gzip_disable msie6;
  133. gzip_comp_level 2;
  134.  
  135.  
  136. ##
  137. # Virtual Host Configs
  138. ##
  139.  
  140. include /etc/nginx/conf.d/*.conf; # nothing inside it
  141. include /etc/nginx/sites-enabled/*;
  142.  
  143. reset_timedout_connection on;
  144. client_body_timeout 10;
  145. send_timeout 2;
  146. keepalive_timeout 30;
  147. keepalive_requests 100000;
  148. }
Add Comment
Please, Sign In to add comment