diff options
author | Thomas Willingham <founder@kakste.com> | 2013-06-13 17:46:23 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-06-13 17:46:23 +0100 |
commit | 9992b1ffe6ef5f7621f8f6ec60fa024d10ccf1d5 (patch) | |
tree | 8f486e88d05f474d7568392950a55fb10a717997 /doc/install/sample-nginx.conf | |
parent | 2d3a0a65258be35f4c046b6b3e416bf93baa4940 (diff) | |
download | volse-hubzilla-9992b1ffe6ef5f7621f8f6ec60fa024d10ccf1d5.tar.gz volse-hubzilla-9992b1ffe6ef5f7621f8f6ec60fa024d10ccf1d5.tar.bz2 volse-hubzilla-9992b1ffe6ef5f7621f8f6ec60fa024d10ccf1d5.zip |
Add sample nginx conf in doc/install - we'll keep configs and trouble shooting doco here, where everything can be plain text,
since it's for people who haven't got Red installed yet/properly, and may not be able to read markdown easily.
Diffstat (limited to 'doc/install/sample-nginx.conf')
-rw-r--r-- | doc/install/sample-nginx.conf | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/install/sample-nginx.conf b/doc/install/sample-nginx.conf new file mode 100644 index 000000000..e7ce66db0 --- /dev/null +++ b/doc/install/sample-nginx.conf @@ -0,0 +1,28 @@ +# A sample configuration for The Red Matrix on Nginx. One should also take care to block access to dot files, etc, in their standard.conf. + + +server { +listen 80; +listen 443 ssl; +server_name example.com; +ssl_certificate /path/to/ssl.crt; +ssl_certificate_key /path/to/ssl.key; + +root /var/www/example.com; + access_log /var/log/nginx/example.com.log; + include standard.conf; + location ~ \.php$ { + fastcgi_split_path_info ^(.+\.php)(/.+)$; + include fastcgi_params; + fastcgi_intercept_errors on; + fastcgi_pass php; + fastcgi_read_timeout 300; + } + if (!-e $request_filename){ + rewrite ^(.*)$ /index.php?q=$1 last; + } + location / { + try_files $uri $uri/ /index.php; + } +} + |