Created
December 19, 2010 04:49
-
-
Save yiquncode/747112 to your computer and use it in GitHub Desktop.
nginx反向代理,存在安全问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#解决办法 | |
location /phpmyadmin { | |
auth_basic "Tell me who you are"; | |
auth_basic_user_file passwd/htpasswd; | |
proxy_pass http://apache; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80 default; | |
server_name 8.8.8.8; | |
root /var/www; | |
index index.html index.htm; | |
autoindex on; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
解决办法
location /phpmyadmin {
auth_basic "Tell me who you are";
auth_basic_user_file passwd/htpasswd;
proxy_pass http://apache;
}