Set apache to point to cardDAV

I'm trying to setup apache in order to have a subdomain pointing to owncloud cardDAV service. This would make it easier to share a public address book and it would be easier to setup up a web page to access/manage it.

Any idea how I should do it?

Are you talking about a normal virtual domain pointing to ownCloud? That's part of any standard Apache setup, but you haven't given us much to go on. File names and locations differ depending on your OS and Apache version.

But if you use FreeBSD and Apache 2.4, you'll need to include something like the following in your /usr/local/etc/apache24/extra/httpd-vhosts.conf file:

<VirtualHost *:80>
    ServerName owncloud.yourdomain.net
    Redirect permanent / https://owncloud.yourdomain.net/
</VirtualHost>

<VirtualHost *:443>
    DocumentRoot /usr/local/www/owncloud
    ServerName owncloud.yourdomain.net
    SSLEngine on
    SSLCertificateFile /usr/local/etc/SSL/fullchain.pem
    SSLCertificateKeyFile /usr/local/etc/SSL/privkey.pem
</VirtualHost>

No, I've already set up this virtual host to point to owncloud.mydomain.org

What I'm trying to do is point directly to cardDav address book roots.
I'm planning to share publicly some adresse books so it would be easier to have a simple url (ex. carddav.mydomain.org). Also, I'm trying to implement a javascript that allow browsing/managing address books (owncloud isn't very good for that). The script I'm using is harder to run on cross-domain, so I'd like to put carddav service and the script on the same virtual domain.

I'm running on Debian 8.0 (Jessie).

Thanks for your interest