Unrecognized header format %

<VirtualHost *:*>
    RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
</VirtualHost>

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:5000/
    ProxyPassReverse / http://127.0.0.1:5000/
    ServerName www.example.com
    ServerAlias *.example.com
    ErrorLog ${APACHE_LOG_DIR}helloapp-error.log
    CustomLog ${APACHE_LOG_DIR}helloapp-access.log common
</VirtualHost>

将 %  改为 $ 即可

来源:Github>https://github.com/aspnet/AspNetCore.Docs/issues/9853

posted @ 2019-12-13 20:02  BrainK_1400  阅读(529)  评论(1编辑  收藏  举报