aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-13 17:53:40 -0700
committerfriendica <info@friendica.com>2013-06-13 17:53:40 -0700
commitc7ac5a9d80907a86eff1000b35488e44d41b1915 (patch)
treea4f0164f1da1785ccfd9b7a2f60d56bfd23d7465
parent125ee673de6015387680260b82e2110ecf9978df (diff)
parent047967da990aee62d029a20502981ee8c57bec97 (diff)
downloadvolse-hubzilla-c7ac5a9d80907a86eff1000b35488e44d41b1915.tar.gz
volse-hubzilla-c7ac5a9d80907a86eff1000b35488e44d41b1915.tar.bz2
volse-hubzilla-c7ac5a9d80907a86eff1000b35488e44d41b1915.zip
Merge https://github.com/friendica/red into zpull
-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;
+ }
+}
+