diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-07-13 10:36:33 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-07-13 10:36:33 +0200 |
commit | 3574407229f50681b91f071ffdee62fdb0c589e6 (patch) | |
tree | 312ece64f54da3ba1efd0d268c8a4a0d6c815097 /package/nginx/files/nginx.conf | |
parent | c4174ebc9bf10540bbb852d993973e4b89a5eeb6 (diff) |
add nginx configs working with php
Diffstat (limited to 'package/nginx/files/nginx.conf')
-rw-r--r-- | package/nginx/files/nginx.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/nginx/files/nginx.conf b/package/nginx/files/nginx.conf new file mode 100644 index 000000000..ea11ef025 --- /dev/null +++ b/package/nginx/files/nginx.conf @@ -0,0 +1,24 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + + server { + listen 80; + server_name localhost; + root /srv/www/htdocs; + + location ~ \.php$ { + fastcgi_pass unix:/var/run/php5.sock; + fastcgi_index index.php; + include fastcgi_params; + } + } +} |