Created
October 29, 2013 03:21
-
-
Save lyonsun/7208742 to your computer and use it in GitHub Desktop.
nginx config for codeigniter, but this doesn't work for me.
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_name localhost; | |
root "E:\LYON\NGINX\citestonginx"; | |
index index.html index.php; | |
# set expiration of assets to MAX for caching | |
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { | |
expires max; | |
log_not_found off; | |
} | |
location / { | |
try_files $uri $uri/ /index.php; | |
} | |
location ~* \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
include nginx.fastcgi.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment