1. 首页
  2. WordPress钩子手册
  3. 主题相关

NGinx代理>NGinx WordPress多站点

我有困难,以建立一个subdir多网站后,以下https://codex.wordpress.org/Nginx。

Error msg nginx: [emerg] \"map\" directive is not allowed here in /etc/nginx/conf.d/global/wordpress-ms-subdir.conf:4nginx: configuration file /etc/nginx/nginx.conf test failedand i can´t find the error but i am still getting the same error.proxy Server - nginx/sites-enabled/multi.ledtec.conf<blockquote>server {listen 80 ;listen [::]:80 ;server_name multi.ledtec.se;# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.return 301 https://$host$request_uri;}server {listen 443 ssl http2;listen [::]:443 ssl http2;server_name multi.ledtec.se;# certs sent to the client in SERVER HELLO are concatenated in ssl_certificatessl_certificate /etc/letsencrypt/live/multi.ledtec.se/fullchain.pem; # managed by Certbotssl_certificate_key /etc/letsencrypt/live/multi.ledtec.se/privkey.pem; # managed by Certbotssl_session_timeout 1d;ssl_session_cache shared:SSL:50m;ssl_session_tickets off;# modern configuration. tweak to your needs.ssl_protocols TLSv1.2;ssl_ciphers \"ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY$ssl_prefer_server_ciphers on;# HSTS (ngx_http_headers_module is required) =404;include fastcgi_params;fastcgi_pass php;}#add some rules for static content expiry-headers here}</blockquote>
Expand
  • 本主题两年前由Jan Dembowski修改。
  • 本主题两年前修改,4个月前由Jan Dembowski撰写。

我需要帮助的页面:[登录以查看链接]

这与WordPress没有任何关系,只是提到nginx不支持.htaccess文件,WordPress广泛使用这些文件。您可能想在stackexchange或serverfault上提问

NGinx代理>NGinx WordPress多站点 为WP2原创文章,链接:https://www.wp2.cn/hook/theme_hook/nginx%e4%bb%a3%e7%90%86nginx-wordpress%e5%a4%9a%e7%ab%99%e7%82%b9/

发表评论

您的电子邮箱地址不会被公开。