apache,创建 alias

1
2
3
4
5
6
7
    alias /php_yii "/home/ethan/git_repo/misc/php_yii"
    <Directory "/home/ethan/git_repo/misc/php_yii">
        Options FollowSymlinks
        # Limit: Allow use of the directives controlling host access (Allow, Deny and Order).
        AllowOverride Limit
        Require all granted
    </Directory>

Windows:直接在httpd.conf 中添加

Ubuntu:在/etc/apache2/mods-available/alias.conf