summaryrefslogtreecommitdiff
path: root/platform/etc/nginx/www.conf.sample
diff options
context:
space:
mode:
Diffstat (limited to 'platform/etc/nginx/www.conf.sample')
-rw-r--r--platform/etc/nginx/www.conf.sample42
1 files changed, 42 insertions, 0 deletions
diff --git a/platform/etc/nginx/www.conf.sample b/platform/etc/nginx/www.conf.sample
new file mode 100644
index 0000000..cacddaa
--- /dev/null
+++ b/platform/etc/nginx/www.conf.sample
@@ -0,0 +1,42 @@
+server {
+ listen 80;
+ server_name acerv.uz *.acerv.uz;
+ root /srv/acerv.us/platform/www/;
+ error_log /srv/acerv.us/platform/log/nginx.error error;
+
+ location = /favicon.ico {
+ log_not_found off;
+ access_log off;
+ }
+
+ location = /robots.txt {
+ allow all;
+ log_not_found off;
+ access_log off;
+ }
+
+ index doku.php index.php;
+
+ #Remember to comment the below out when you're installing, and uncomment it when done.
+ #location ~ /(data/|conf/|bin/|inc/|install.php) { deny all; }
+
+ location / { try_files $uri $uri/ @dokuwiki; }
+
+ location @dokuwiki {
+ # rewrites "doku.php/" out of the URLs if you set the userewrite setting to .htaccess in dokuwiki config page
+ rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
+ rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
+ rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
+ rewrite ^/(.*) /doku.php?id=$1&$args last;
+ }
+
+ location ~ \.php$ {
+ try_files $uri $uri/ /doku.php;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param REDIRECT_STATUS 200;
+# fastcgi_pass unix:/srv/reevo-web/run/blog.socket;
+ fastcgi_pass unix:/srv/acerv.us/platform/run/acervus.socket;
+ fastcgi_buffering off;
+ }
+}