Apache为反向代理添加用户验证

发布于 2020-07-21  617 次阅读


先参见这篇文章的基础知识:https://limour.top/109.html

<Location /info/>
	AllowOverride AuthConfig
	AuthType Basic
	AuthName "This page is private"
	AuthBasicProvider file
	AuthUserFile /media/app/apasswd
	require valid-user
</Location>
ProxyPass /info/ http://127.0.0.1:30101/
ProxyPassReverse /info/ http://127.0.0.1:30101/

医学生