我正在家里尝试一个新的设置,但不确定我正在尝试做的事情是否可行。
我已经让我的域的 DNS 指向我的 WAN IP,并且在端口 80 上的 Ubuntu 14.04 服务器上由 Apache 回答,那里的一切正常。但是,我想把它混合起来,这就是我想要完成的。
在 apache 服务器上运行的虚拟主机侦听基于名称的路由。就像是:
wp.me.com -> forwarded to my Ubuntu server and fed Wordpress from Apache
fw.me.com -> forwarded to server and redirected to 192.168.1.1:8443 to access my firewall
wifi.me.com -> forwarded to server and redirected to 192.168.1.3:8080 to access WiFi
dev.me.com -> forwarded to server and fed from a separate directory in Apache
Run Code Online (Sandbox Code Playgroud)
这是我可以用 VirtualHosts 完成的事情吗?