# Automagically configuring traefik from apache

**URL:** https://community.traefik.io/t/automagically-configuring-traefik-from-apache/6776
**Category:** Traefik v2
**Tags:** docker
**Created:** [July 5, 2020, 10:30pm UTC](https://community.traefik.io/t/automagically-configuring-traefik-from-apache/6776 "2020-07-05T22:30:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leifnel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/leifnel/32/2047_2.png) [@leifnel](https://community.traefik.io/u/leifnel)
#### Post date: [July 5, 2020, 10:30pm UTC](https://community.traefik.io/t/automagically-configuring-traefik-from-apache/6776/1 "2020-07-05T22:30:33Z")

</div>

If I run apache in one or more containers, is there a way for traefik to get the ServerName/ServerAlias from the sites in the files in /etc/apache2/sites-available, so I don't have to add a couple of labels for each ServerName/Alias manually and probably screw up some times?

Perhaps a script parsing the output from apache2ctl -t -D DUMP\_VHOSTS to a configfile?
