Skip to content

Instantly share code, notes, and snippets.

View avxkim's full-sized avatar
🏠
Working from home

Alexander Kim avxkim

🏠
Working from home
View GitHub Profile
GRANT GRANT OPTION ON *.* TO 'new_user'@'localhost';
conv workflow:delcache
@avxkim
avxkim / nginx
Last active October 30, 2017 14:19
Example: You have site under domain proxy.com, you want to show website from mirror.com on that domain, you can do the following code to make it work.
server {
listen 80;
server_name mirror.com www.mirror.com;
location / {
proxy_pass http://mirror.com;
proxy_set_header Host mirror.com;
}
}