summaryrefslogtreecommitdiff
path: root/etc/nginx
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2020-06-11 23:03:37 -0300
committerYaco <franco@reevo.org>2020-06-11 23:03:37 -0300
commit2837c2412a296c6eed2381126df1fc80a77fdd16 (patch)
treea1a7b6c609de415aef82f9ff4ee943a3a5fed359 /etc/nginx
parent191b738f494fbfe39198d1f224866011cd62adda (diff)
changes for multiple sites
Diffstat (limited to 'etc/nginx')
-rwxr-xr-xetc/nginx/wiki.conf.sample14
1 files changed, 7 insertions, 7 deletions
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 ~^(?<subdomain>.+)\.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;
}