Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为了兼容反向代理将绝对路径改为uri #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

k4n5ha0
Copy link

@k4n5ha0 k4n5ha0 commented Mar 26, 2022

如题

@CaledoniaProject
Copy link
Contributor

CaledoniaProject commented Mar 26, 2022

  1. 这个改完了,生成的curl命令应该就没法用了,你看看
  2. getRequestURL在什么场景下不兼容反向代理

@k4n5ha0
Copy link
Author

k4n5ha0 commented Mar 27, 2022

  1. 这个改完了,生成的curl命令应该就没法用了,你看看
  2. getRequestURL在什么场景下不兼容反向代理

把123.com映射到127.0.0.1

<VirtualHost *:80>
ServerName 123.com
AddDefaultCharset UTF-8

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>

@CaledoniaProject
Copy link
Contributor

CaledoniaProject commented Mar 27, 2022

主要问题还是第一个,你这个改完之后,curl就没法用了。而且你不改,反向代理也是可以用的,不知道你遇到了啥问题。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants