Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. server {
  2. listen 80;
  3. root /srv/example.com;
  4. index index.html index.htm;
  5. server_name example.com;
  6.  
  7. location / {
  8. index index.html index.htm index.php;
  9. }
  10.  
  11. location /app {
  12. proxy_set_header X-Real-IP $remote_addr;
  13. proxy_set_header X-Forwarded-For $remote_addr;
  14. proxy_set_header Host $host;
  15. proxy_pass http://localhost:3001/;
  16. }
  17.  
  18. location /blog {
  19. index index.php index.html index.htm;
  20. try_files $uri $uri/ /blog/index.php;
  21. rewrite /wp-admin$ $scheme://$host$uri/ permanent;
  22. location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
  23. access_log off; log_not_found off; expires max;
  24. }
  25. }
  26.  
  27. location ~ \.php$ {
  28. try_files $uri =404;
  29. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  30. fastcgi_pass unix:/var/run/php5-fpm.sock;
  31. fastcgi_index index.php;
  32. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  33. include fastcgi_params;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement