Skip to content

Commit

Permalink
Add example nginx config to README
Browse files Browse the repository at this point in the history
Example nginx config added which can be used as contents of `/etc/nginx/sites-enabled/default`.

Closes panique#142 and panique#55.
  • Loading branch information
jeroenseegers committed Feb 25, 2015
1 parent 6d9750f commit 2f9afb3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,27 @@ A very early documentation can be found on [php-mini.com/documentation](http://p

### nginx

TODO (please commit if you have a perfect config)
```nginx
server {
server_name default_server _; # Listen to any servername
listen [::]:80;
listen 80;
root /var/www/html/myproject/public;
location / {
index index.php;
try_files /$uri /$uri/ /index.php?url=$uri;
}
location ~ \.(php)$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
```

### IIS

Expand Down

1 comment on commit 2f9afb3

@ptrsmk
Copy link

@ptrsmk ptrsmk commented on 2f9afb3 Mar 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was useful also for huge.

Please sign in to comment.