Apache System Variables

Heya folks. Anybody know an Apache server variable that will return either the script’s current directory or the absolute address of the directory the script is in?

Example: if my .htaccess file is in http://site.com/dir3/, I need a variable that returns either /dir3/ or dir3/ or dir3 or http://site.com/dir3/

Any ideas?

I think there is a misconfiguration of Apache Virtual Host, and that’s why things aren’t working out how I need them…