Created
May 14, 2010 11:59
-
-
Save davidcoallier/401064 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
server { | |
listen 80; | |
server_name admin.api.frapi; | |
access_log /var/log/nginx/admin.api.frapi/access.log; | |
location / { | |
if (-f $request_filename) { | |
break; | |
} | |
rewrite ^/(.*)$ /index.php?$1 last; | |
root PATH/src/frapi/admin/public; | |
index index.php; | |
} | |
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
# | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME PATH/src/frapi/admin/public/$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment