这是场景
一个网站正在运行在这个域名 – www.someserver.com
我要在我的机器上托pipesubdomain.someserver.com 。
假设所有的图像文件都在“ img ”目录下。
我不想将所有图像复制到我的机器上。 那么应该是什么样的Apache指令来映射请求的图像,如
http://subdomain.someserver.com/img/image.png
至
http://www.someserver.com/img/image.png
在subdomain.someserver.com上:
Redirect /img http://www.someserver.com/img
在www.someserver.com上:
AliasMatch (.*)$ /location/of/home/directory/$1