Advertisement
Guest User

Site 2 Configuration

a guest
Nov 26th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. ## Configuration for Site2 without a domain
  2. server {
  3. listen 80;
  4. server_name site2.com alias site2.com.XX.XX-XXX-XXX.providerurl.com;
  5. root /var/www/vhosts/site2.com/httpdocs/Symfony/web;
  6.  
  7. error_log /var/log/nginx/site2.error.log;
  8. access_log /var/log/nginx/site2.access.log;
  9.  
  10. # server-side compression
  11. gzip on;
  12. gzip_min_length 1100;
  13. gzip_buffers 4 8k;
  14. gzip_proxied any;
  15. gzip_types text/plain application/xml text/css text/js application/x-javascript text/javascript application/json;
  16.  
  17. location / {
  18. index app_dev.php;
  19. if (-f $request_filename) {
  20. break;
  21. }
  22. rewrite ^(.*)$ /app_dev.php last;
  23. }
  24.  
  25. # set a nice expire for assets
  26. location ~* "^.+\.(jpe?g|gif|css|png|js|ico|pdf|zip|tar|t?gz|mp3|wav|swf)$" {
  27. expires 360d;
  28. add_header Cache-Control public;
  29. access_log off;
  30. log_not_found off;
  31. }
  32.  
  33. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  34. #
  35.  
  36. location ~* \.php {
  37. include fastcgi_params;
  38. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  39. fastcgi_read_timeout 600;
  40. fastcgi_pass php53;
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement