From bb826b86dd49d2133d3911b7d85d845e7df3ec28 Mon Sep 17 00:00:00 2001 From: Yaco Date: Thu, 5 Sep 2019 12:14:16 -0300 Subject: agrega soporte pare redireccion con cambio de idioma --- etc/global_config.php.sample | 4 +++- etc/nginx/wiki.conf.sample | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/global_config.php.sample b/etc/global_config.php.sample index 17f3f9b7..c5308f6b 100755 --- a/etc/global_config.php.sample +++ b/etc/global_config.php.sample @@ -9,6 +9,8 @@ $REEVO_PATH = "/srv/reevo-2020"; $REEVO_URL = "reevo.test"; +$REEVO_URL_CRM = "reevo.org"; + $REEVO_PROTOCOL = "http"; $REEVO_DB_USER = ""; @@ -35,7 +37,7 @@ $WP_REEVO_SECURE_AUTH_KEY = ''; $WP_REEVO_LOGGED_IN_KEY = ''; $WP_REEVO_NONCE_KEY = ''; $WP_REEVO_AUTH_SALT = ''; -$WP_REEVO_SECURE_AUTH_SAL = ''; +$WP_REEVO_SECURE_AUTH_SALT = ''; $WP_REEVO_LOGGED_IN_SALT = ''; $WP_REEVO_NONCE_SALT = ''; diff --git a/etc/nginx/wiki.conf.sample b/etc/nginx/wiki.conf.sample index fab5e545..210f8686 100755 --- a/etc/nginx/wiki.conf.sample +++ b/etc/nginx/wiki.conf.sample @@ -6,7 +6,7 @@ # ---- server { - server_name wiki.example.org; + server_name example.org ~^(?.+)\.example\.org$; root /srv/reevo-2020/www/wiki; index index.php; @@ -28,6 +28,9 @@ server { } location @mediawiki { + if ($subdomain) { + return 301 http://example.org$request_uri#$subdomain; + } rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&$2 last; } -- cgit v1.2.1