diff options
author | Yaco <franco@reevo.org> | 2019-09-05 12:14:16 -0300 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2019-09-05 12:14:16 -0300 |
commit | bb826b86dd49d2133d3911b7d85d845e7df3ec28 (patch) | |
tree | 50dfd0bd13e633a8ea18e6b05795e1e683473f44 /etc | |
parent | 230ddf167baf78188d71be9f71a14a228767e972 (diff) |
agrega soporte pare redireccion con cambio de idioma
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/global_config.php.sample | 4 | ||||
-rwxr-xr-x | etc/nginx/wiki.conf.sample | 5 |
2 files changed, 7 insertions, 2 deletions
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 ~^(?<subdomain>.+)\.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; } |