Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- ## How to allow access from LAN and Internet to your local project:
- ## http://wtserver.wtriple.com/howtos.php#How-to-allow-access-from-LAN-and-Internet-to-your-local-project
- listen 127.0.0.1:80;
- ## How to add additional local test server names to my project:
- ## http://wtserver.wtriple.com/howtos.php#How-to-add-additional-local-test-server-names-to-my-project
- server_name cpcloud2.com app.cpcloud2.com dev.cpcloud2.com charilaou.cpcloud2.com agiosdimitrios.cpcloud2.com neoirakleio.cpcloud2.com oraiokastro.cpcloud2.com;
- ## To manually change the root directive replace the ending comment with: # locked
- ## http://wtserver.wtriple.com/howtos.php#How-to-change-the-root-directory-of-a-project
- root "c:/users/georg/web/cafeprocloud2/public"; # automatically modified on each restart! can be manually set by replacing this comment
- ## Access Restrictions
- allow 127.0.0.1;
- deny all;
- ## Add locations:
- ## http://wtserver.wtriple.com/howtos.php#How-to-add-locations
- ## Configure for various PHP Frameworks:
- ## http://wtserver.wtriple.com/nginx.php
- autoindex on;
- location ~ \.php$ {
- try_files $uri =404;
- include nginx.fastcgi.conf;
- include nginx.redis.conf;
- fastcgi_pass php_farm;
- expires off;
- }
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- expires off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement