dpleylxzx47207117 2012-07-19 11:57
浏览 12
已采纳

Apache镜像文件夹

So I have a PHP system over an Apache Server running on a Window SO. I want to create some kind of a mirror of it to make tests and whatever without have to copy the source code. For example: Actual scenario:

http://192.168.1.1/finantial lies on C:\EasyPHP\www\finantial

I want to create this:

http://192.168.1.1/finantial_test that points to the same source code that the address above.

When this configs were ok, I can make the app to use different database.

  • 写回答

2条回答 默认 最新

  • duanjiongzhen2523 2012-07-19 14:01
    关注

    It's so easy to do that. Just add an Alias to your VirtualHost like...

    <VirtualHost *:80>
    Alias /finantial_test "C:/EasyPHP/www/finantial"
    </VirtualHost>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?