Skip to content

Instantly share code, notes, and snippets.

@kelvearagao
Created November 11, 2017 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelvearagao/c8a6532cb6a80b3f3c86ccd87cd6d623 to your computer and use it in GitHub Desktop.
Save kelvearagao/c8a6532cb6a80b3f3c86ccd87cd6d623 to your computer and use it in GitHub Desktop.
EasyPHP + Nginx + CakePHP + Virtual Host
#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