その方式でいいんですよ。
httpd.confに

Alias /test "/opt/lampp/test"
<Directory "/opt/lampp/test">
Options FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

こんな感じで。