NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
atie
V2EX  ›  NGINX

关于Nginx域名绑定到指定地址的规则。

  •  
  •   atie · Apr 26, 2012 · 3512 views
    This topic created in 5219 days ago, the information mentioned may be changed or developed.
    我想用aaa.123.com绑定到123.com/aaa这个地址。

    但最关键的是123.com/aaa这个本身不是真实的目录,而是我rewrite出来的地址,真实的地址可能是123.com/php?id=5这样的。

    换句话说,我应该如何设置让aaa.123.com访问到123.com/php?id=5这个地址?



    求教!!!
    1 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Apr 26, 2012
    123.com 作为 upstream backend

    aaa.123.com 作为一个 server {} ,其中的 location / 反向代理到 upstream backend。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2842 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:43 · PVG 22:43 · LAX 07:43 · JFK 10:43
    ♥ Do have faith in what you're doing.