Guest User

Untitled

a guest
Jun 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. #user nobody
  2. worker_processes 1;
  3. error_log logs/error.log debug;
  4. pid logs/nginx.pid;
  5.  
  6. #-----------------------------------------------------------------------------
  7.  
  8. events {
  9. worker_connections 64;
  10. }
  11.  
  12. #-----------------------------------------------------------------------------
  13.  
  14. http {
  15. include mime.types;
  16. default_type application/octet-stream;
  17. server_tokens off;
  18.  
  19. server {
  20. listen 80 default;
  21. server_name _;
  22. server_name_in_redirect off;
  23. root /www;
  24. autoindex on;
  25. index index.html index.htm;
  26. #sendfile on;
  27. access_log logs/access.log combined;
  28.  
  29. location /status {
  30. stub_status on;
  31. access_log off;
  32. allow 127.0.0.1;
  33. deny all;
  34. }
  35.  
  36. location ~ /\.ht {
  37. deny all;
  38. }
  39.  
  40. location ~ /~([a-zA-Z0-9]*)/(.*) {
  41. rewrite ^/~([a-zA-Z0-9]*)/(.*)$ $scheme://$1.local/$2 last;
  42. }
  43.  
  44. location ~ \.php$ {
  45. include /usr/local/nginx/conf/fastcgi_php;
  46. fastcgi_pass 127.0.0.1:9000;
  47. }
  48.  
  49. location ~ \.jsp$ {
  50. fastcgi_pass 127.0.0.1:10000;
  51. #include /usr/local/nginx/conf/fastcgi_php;
  52. fastcgi_param SCRIPT_FILENAME C:/cygwin-1.7$document_root$fastcgi_script_name;
  53. }
  54. }
  55.  
  56. include vhosts/*.conf;
  57. }
  58.  
  59.  
  60. #-----------------------------------------
  61. vhosts/cliente1.conf;
  62.  
  63. server {
  64. listen 80;
  65. server_name cliente1.local *.cliente1.com;
  66.  
  67. server_name_in_redirect off;
  68. root /home/cliente1/www;
  69. autoindex on;
  70. index index.html index.htm;
  71.  
  72.  
  73. #other configs.....
  74. }
Add Comment
Please, Sign In to add comment