Skip to content

Instantly share code, notes, and snippets.

@yiquncode
Created December 19, 2010 04:49
Show Gist options
  • Save yiquncode/747112 to your computer and use it in GitHub Desktop.
Save yiquncode/747112 to your computer and use it in GitHub Desktop.
nginx反向代理,存在安全问题
#解决办法
location /phpmyadmin {
auth_basic "Tell me who you are";
auth_basic_user_file passwd/htpasswd;
proxy_pass http://apache;
}
server {
listen 80 default;
server_name 8.8.8.8;
root /var/www;
index index.html index.htm;
autoindex on;
}
@yiquncode
Copy link
Author

解决办法

location /phpmyadmin {
auth_basic "Tell me who you are";
auth_basic_user_file passwd/htpasswd;
proxy_pass http://apache;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment