Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. server {
  2.  
  3. ## How to allow access from LAN and Internet to your local project:
  4. ## http://wtserver.wtriple.com/howtos.php#How-to-allow-access-from-LAN-and-Internet-to-your-local-project
  5.  
  6. listen 127.0.0.1:80;
  7.  
  8. ## How to add additional local test server names to my project:
  9. ## http://wtserver.wtriple.com/howtos.php#How-to-add-additional-local-test-server-names-to-my-project
  10.  
  11. server_name cpcloud2.com app.cpcloud2.com dev.cpcloud2.com charilaou.cpcloud2.com agiosdimitrios.cpcloud2.com neoirakleio.cpcloud2.com oraiokastro.cpcloud2.com;
  12.  
  13. ## To manually change the root directive replace the ending comment with: # locked
  14. ## http://wtserver.wtriple.com/howtos.php#How-to-change-the-root-directory-of-a-project
  15.  
  16. root "c:/users/georg/web/cafeprocloud2/public"; # automatically modified on each restart! can be manually set by replacing this comment
  17.  
  18.  
  19. ## Access Restrictions
  20. allow 127.0.0.1;
  21. deny all;
  22.  
  23.  
  24. ## Add locations:
  25. ## http://wtserver.wtriple.com/howtos.php#How-to-add-locations
  26.  
  27.  
  28. ## Configure for various PHP Frameworks:
  29. ## http://wtserver.wtriple.com/nginx.php
  30.  
  31.  
  32.  
  33.  
  34. autoindex on;
  35.  
  36. location ~ \.php$ {
  37. try_files $uri =404;
  38. include nginx.fastcgi.conf;
  39. include nginx.redis.conf;
  40. fastcgi_pass php_farm;
  41. expires off;
  42. }
  43.  
  44. location / {
  45. try_files $uri $uri/ /index.php?$query_string;
  46. expires off;
  47. }
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement