This ought to be simple, however i can't get results.

I've got a site having a path inside it, such as this: www.mysite.com/coolstuff. Whenever a user types www.coolstuff.com I would like Apache to visit www.mysite.com/coolstuff.

A potential complication is the fact that coolstuff isn't within the docroot, but I am utilizing an alias to suggest to the directory. So coolstuff isn't a subdirectory inside the mysite.com docroot. I am wishing which has nothing related to my problem.

It's easy, you need to simply setup another virtual host for www.coolstuff.com. If you are using title-based virtual hosting (the most typical configuration, that you possess a NameVirtualHost *:80 directive somewhere within the config file), this can be done:

<VirtualHost *:80>
    ServerName www.coolstuff.com
    ServerAlias coolstuff.com
    RedirectPermanent / http://www.mysite.com/coolstuff/
</VirtualHost>

This could redirect the browser to www.mysite.com/coolstuff, i.e. the consumer knows they are getting sent to another URL. If you would rather not have access to that, it might most likely be simpler to simply result in the coolstuff directory a document cause of its very own:

<VirtualHost *:80>
    ServerName www.coolstuff.com
    ServerAlias coolstuff.com
    DocumentRoot /path/to/coolstuff
</VirtualHost>