如何使用httpd作为反向代理隐藏odoo服务器信息

问题描述 投票:0回答:1

我在centos 8上安装了odoo,并使用httpd作为反向代理。像其他Apache强化一样,我使用ServerTokens Prod dan ServerSignature Off隐藏服务器信息。

但是当我尝试wget时结果仍显示服务器信息

Spider mode enabled. Check if remote file exists.
--2020-03-12 11:57:14--  http://my.domain/
Resolving my.domain (my.domain)... 169.0.0.1
Connecting to my.domain (my.domain)|169.0.0.1|:80... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 301 Moved Permanently
  Content-length: 0
  Location: https://my.domain/
Location: https://my.domain/ [following]
Spider mode enabled. Check if remote file exists.
--2020-03-12 11:57:14--  https://my.domain/
Connecting to my.domain (my.domain)|169.0.0.1|:443... connected.
HTTP request sent, awaiting response... 
  HTTP/1.1 200 OK
  Date: Thu, 12 Mar 2020 04:56:55 GMT
  Server: Werkzeug/0.14.1 Python/3.7.5
  Content-Type: text/html; charset=utf-8
  Content-Length: 10589
  Set-Cookie: frontend_lang=en_US; Path=/
  Set-Cookie: session_id=s8487a5ec76bd455f42680c38195b5f7f0285d563; Expires=Wed, 10-Jun-2020 04:56:55 GMT; Max-Age=7776000; HttpOnly; Path=/
  Vary: User-Agent
Length: 10589 (10K) [text/html]
Remote file exists and could contain further links,
but recursion is disabled -- not retrieving.
apache odoo reverse-proxy odoo-13
1个回答
0
投票

可以使用mod_headermod_rewrite,然后添加

Header set Server "value that you want"添加到您的apache虚拟主机

© www.soinside.com 2019 - 2024. All rights reserved.