Created
November 11, 2017 16:17
-
-
Save kelvearagao/c8a6532cb6a80b3f3c86ccd87cd6d623 to your computer and use it in GitHub Desktop.
EasyPHP + Nginx + CakePHP + Virtual Host
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#virtual-host | |
server { | |
listen 8585; | |
server_name 127.0.0.1; | |
root "C:/Users/kelve/workspace/doacoes-sustentacao-2017/app/webroot"; | |
index index.php; | |
location "/" { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
location /eds-modules { | |
alias "C:/Program Files (x86)/EasyPHP-Devserver-17/eds-modules"; | |
index index.html index.htm index.php; | |
autoindex on; | |
location ~ /eds-modules(.*\.php)$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$1; | |
include fastcgi_params; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment