将nginx反向代理配置转换为Apache

时间:2020-01-07 12:40:07

标签: apache nginx

我有以下有效的nginx反向代理配置

server {
  listen 192.168.100.7:443;
  server_name mysite.internal;
  location / {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto https;
    proxy_redirect off;
    proxy_pass http://192.168.100.8;
    proxy_http_version 1.1;
  }
  ssl on;
  ssl_certificate /etc/nginx/certs/mycert.cer;
  ssl_certificate_key /etc/nginx/certs/mycert.key;
  ssl_session_timeout  5m;
}

我正在尝试将其转换为在Apache httpd下运行,但是我无法使其正常工作。

0 个答案:

没有答案