From 2837c2412a296c6eed2381126df1fc80a77fdd16 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 11 Jun 2020 23:03:37 -0300 Subject: changes for multiple sites --- etc/nginx/wiki.conf.sample | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'etc/nginx/wiki.conf.sample') diff --git a/etc/nginx/wiki.conf.sample b/etc/nginx/wiki.conf.sample index abfc42c2..cec4d645 100755 --- a/etc/nginx/wiki.conf.sample +++ b/etc/nginx/wiki.conf.sample @@ -1,18 +1,18 @@ # ---- # Copyright (C) 2013-2020 - Reevo (http://reevo.org) # License: Affero GPL version 3 - http://www.gnu.org/licenses/agpl.html -# ES: Este archivos es parte de: reevo-web (http://git.reevo.org/reevo/reevotech) -# EN: This file is part of: reevotech (http://git.reevo.org/reevo/reevotech) +# ES: Este archivos es parte de: reevo-web (http://git.reevo.org/reevo/crianzamutua) +# EN: This file is part of: crianzamutua (http://git.reevo.org/reevo/reevo-2020) # ---- server { - server_name example.org ~^(?.+)\.example\.org$; + server_name example.org; root /srv/reevotech/www/wiki; index index.php; - access_log /srv/reevotech/log/wiki/nginx.access.log; - error_log /srv/reevotech/log/wiki/nginx.error.log; + access_log /srv/reevotech/log/wiki/$server_name.nginx.access.log; + error_log /srv/reevotech/log/wiki/$server_name.nginx.error.log; location / { index index.php; @@ -29,14 +29,14 @@ server { location @mediawiki { if ($subdomain) { - return 301 http://example.org$request_uri#$subdomain; + return 301 http://$server_name$request_uri#$subdomain; } rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&$2 last; } location ~ \.php?$ { include /etc/nginx/fastcgi_params; - fastcgi_pass unix:/srv/reevotech/run/wiki.socket; + fastcgi_pass unix:/srv/reevotech/run/$server_name.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } -- cgit v1.2.1