Created
November 1, 2012 08:44
-
-
Save necromant2005/3992532 to your computer and use it in GitHub Desktop.
Nginx.conf
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
server { | |
server_name myhost.com www.myhost.com; | |
root /var/www/MyAppName/public; | |
index index.php; | |
location / { | |
if (!-e $request_filename) { | |
rewrite ^.*$ /index.php last; | |
} | |
} | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include /etc/nginx/fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment