Created
August 23, 2014 08:44
-
-
Save wgm89/961d018e4e130848809f to your computer and use it in GitHub Desktop.
ci rewrite
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 8090; | |
| root /var/www/ti; | |
| index index.php index.html index.htm; | |
| # Enable rewrite error log | |
| # error_log /var/log/nginx/localhost.error_log debug; | |
| # rewrite_log on; | |
| # Any HTTP request other than those for assets folder, files folder and robots.txt | |
| # is treated as a request for your index.php file. | |
| location ~* ^/(assets|files|robots\.txt) { } | |
| location / { | |
| try_files $uri $uri/ /index.php?/$request_uri; | |
| } | |
| # Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
| location ~ \.php$ { | |
| fastcgi_index index.php; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_param SCRIPT_FILENAME /var/www/tizi$fastcgi_script_name; | |
| include fastcgi_params; | |
| } | |
| # Deny access to .htaccess files, if Apache's document root | |
| # concurs with Nginx's one | |
| location ~ /\.ht { | |
| deny all; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment