Apache域控制验证

时间:2019-02-19 13:13:31

标签: apache

我需要完成域控制验证。为此,我必须共享地址:mysite.com/.well-known/pki-validation/MYSITEdomaincontrol.txt

我正在使用带有代理平衡器的apache访问我的网站。我可以从本地文件系统共享DCV地址吗? /home/user/.well-known/pki-validation/MYSITEdomaincontrol.txt,当前在哪里运行apache?还是需要通过平衡器按位置共享此文件? 下面是我的简短配置:

  Listen *:1443

  <Proxy balancer://my/ stickysession=JSESSIONID>
  BalancerMember x.x.x.x:xxxxxx route=my11
  </Proxy>

  <VirtualHost *:1443>

  RequestHeader unset Host
  UseCanonicalName On
  ServerName mysite.com:443

  KeepAliveTimeout 30
  ProxyPreserveHost On 

  SSLEngine On
  SSLCertificateFile xxx
  SSLCertificateKeyFile xxx
  #SSLCertificateChainFile xxx

  ProxyRequests Off

  RewriteEngine On

  RewriteRule (.*)/jmx-console/ "/"
  RewriteRule (.*)/invoker/ "/"
  RewriteRule (.*)/jbossws/ "/"
  RewriteRule (.*)/jbossmq-httpil/ "/"
  RewriteRule (.*)/web-console/ "/"
  RewriteRule (.*)/jamon/ "/"
  RewriteRule (.*)/static/ "/"
  RewriteRule (.*)/juddi/ "/"


  Header set "X-Frame-Options" "DENY" env=!dwh
  Header edit "Set-Cookie" "^(.*)$" "$1; HttpOnly" env=!dwh
  Header edit "Set-Cookie" "^(.*)$" "$1;Secure"

  AddOutputFilterByType INFLATE text/html text/plain text/xml
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript text/css

  Header unset X-Powered-By
  Header unset Liferay-Portal

  ProxyPass /images/ !
  ProxyPass /scripts/ !
  ProxyPass /main.css !
  ProxyPass /error403.html !
  ProxyPass /error404.html !
  ProxyPass /error500.html !
  ProxyPass /error502.html !
  ProxyPass /error503.html !

  Header edit Location "/mysite.com(.*)" "mysite.com:443$1"

    RewriteRule .* /mysite

  <Location />
    Require all granted
    ProxyPass balancer://my/
    ProxyPassReverse balancer://my/
    AddOutputFilterByType SUBSTITUTE text/html
    AddOutputFilterByType SUBSTITUTE text/javascript
    SubstituteMaxLineLength 5m

    ....

    RedirectMatch ^/r$ /r/
    RedirectMatch ^/d$ /d/
    RedirectMatch ^/de$ /de/
    RedirectMatch ^/pbxadmin$ /pbxadmin/
  </Location>

  <Location /test2/>

    .......

  </Location>

0 个答案:

没有答案