Nginx

基本配置:

server {
    listen 80;
    server_name www.your_domain_name.com your_domain_name.com;
    location /{
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:80;
    }
    access_log logs/yesilion_access.log;
}

server {
    listen 80;
    server_name your_domain_name.cn www.your_domain_name.cn;
    location /{
        proxy_redirect off;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:8044;
    }
    access_log logs/gogoko_access.log;
}

你可能感兴趣的:(Nginx)