Advertisement
Guest User

mydomain-nginx.conf

a guest
Jul 14th, 2011
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3.  
  4. error_log /var/log/nginx/error.log;
  5. pid /var/run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 4096;
  9. use epoll;
  10. multi_accept on;
  11. accept_mutex_delay 50ms;
  12. }
  13.  
  14. http {
  15. include /etc/nginx/mime.types;
  16.  
  17. access_log /var/log/nginx/access.log;
  18.  
  19. sendfile on;
  20. #tcp_nopush on;
  21.  
  22. #keepalive_timeout 0;
  23. keepalive_timeout 65;
  24. tcp_nodelay on;
  25. # expires max;
  26. server_tokens off;
  27. gzip on;
  28. gzip_static on;
  29. gzip_proxied any;
  30. gzip_types text/plain text/css application/x-javascript text/xml text/javascript application/xml;
  31. gzip_vary on;
  32. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  33.  
  34. server {
  35. listen 80;
  36. server_name phpmyadmin.muylinux.com;
  37.  
  38. location / {
  39. root /usr/share/phpmyadmin;
  40. index index.php;
  41. }
  42.  
  43. location ~ .php$ {
  44. fastcgi_pass 127.0.0.1:9000; #this must point to the socket spawn_fcgi is running on
  45. fastcgi_index index.php;
  46. fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin/$fastcgi_script_name;
  47. include /etc/nginx/fastcgi_params;
  48. }
  49. }
  50.  
  51.  
  52.  
  53. include /etc/nginx/conf.d/*.conf;
  54. include /etc/nginx/sites-enabled/*;
  55. }
  56.  
  57. # mail {
  58. # # See sample authentication script at:
  59. # # http://wiki.nginx.org/NginxImapAuthenticateWithApachePhpScript
  60. #
  61. # # auth_http localhost/auth.php;
  62. # # pop3_capabilities "TOP" "USER";
  63. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  64. #
  65. # server {
  66. # listen localhost:110;
  67. # protocol pop3;
  68. # proxy on;
  69. # }
  70. #
  71. # server {
  72. # listen localhost:143;
  73. # protocol imap;
  74. # proxy on;
  75. # }
  76. # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement