apache listener file needed

  • I need a listener for apache (autoconfig, autodiscover) ... can someone help?
    it should contain:

    Code
    1. ServerAlias autoconfig.* autodiscover.*
    2. RewriteEngine On
    3. RewriteCond %{HTTPS} !on [OR]
    4. RewriteCond %{HTTP_HOST} !^discover\.my-service\.com$
    5. RewriteRule ^(.*)$ https://discover.my-service.com$1 [R=301]

    Edited once, last by fulltilt ().