aboutsummaryrefslogtreecommitdiffstats
path: root/doc/install
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-06-16 14:59:17 +0100
committerThomas Willingham <founder@kakste.com>2013-06-16 14:59:17 +0100
commit33696cc8392daeb08d011aa3b1209f3b121898ea (patch)
tree466d48f5abc1a4ec1dbf83543471a8ac89428516 /doc/install
parent466a6d5227fbaf0a36cd76b5603cb42bb1b7462b (diff)
parentc4c80a2e472173dfed9b982c6705ccfbb6e6cdab (diff)
downloadvolse-hubzilla-33696cc8392daeb08d011aa3b1209f3b121898ea.tar.gz
volse-hubzilla-33696cc8392daeb08d011aa3b1209f3b121898ea.tar.bz2
volse-hubzilla-33696cc8392daeb08d011aa3b1209f3b121898ea.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'doc/install')
-rw-r--r--doc/install/sample-nginx.conf29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/install/sample-nginx.conf b/doc/install/sample-nginx.conf
new file mode 100644
index 000000000..3f33044fb
--- /dev/null
+++ b/doc/install/sample-nginx.conf
@@ -0,0 +1,29 @@
+# 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;
+ index index.php;
+ 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;
+ }
+}
+