Advertisement
DrGkill

nginx configuration for Observium

Oct 9th, 2011
1,516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #nginx configuration for Observium
  2.  
  3. server {
  4. listen 80;
  5. server_name my.observium.org;
  6.  
  7. access_log /var/log/nginx/observium.access.log;
  8. error_log /var/log/nginx/observium.error.log;
  9.  
  10. root /path/to/observium/html;
  11. index index.php;
  12.  
  13. error_page 500 502 503 504 /50x.html;
  14. location = /50x.html {
  15. root /usr/local/nginx/html;
  16. }
  17.  
  18. location / {
  19. try_files $uri $uri/ @observium;
  20. }
  21.  
  22.  
  23. location @observium {
  24. rewrite ^(.+)$ /index.php/$1/ last;
  25. }
  26.  
  27. location ~ \.php {
  28. fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  30. include /etc/nginx/fastcgi_params;
  31. }
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement