0

I have a apache2 server with mod_worker

i have mod_md enabled and have configured a domain as follows :

achace2ctl configtest is OK and the server started well the problem is it offers me the index.md file to download, instead to parse it to html

Is there something I forgotten?


<Macro MDMacroSSL $domain $zert $portwww $portssl $dir $ip>
    MDomain                 $domain
    MDStoreDir              /etc/apache2/md
    MDCertificateAgreement  accepted

    <VirtualHost *:$portssl>
        ServerName            $domain
        ServerAlias       www.$domain
        ServerAdmin      admin@$domain
        DocumentRoot     $dir

        <Directory $dir/>
          Options -Indexes -FollowSymLinks -MultiViews +SymLinksIfOwnerMatch
          AddHandler text/markdown .md .markdown
          AllowOverride All
          Require $ip
        </Directory>

        <Files "*.md">
          AddType text/markdown .md
          AddType text/markdown .markdown
        </Files>

        # Handle Markdown files
        <FilesMatch "\.(md|markdown)$">
            SetHandler text/markdown
        </FilesMatch>

        LogLevel debug

        SSLCertificateFile    /etc/letsencrypt/live/$zert/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/$zert/privkey.pem
        Include               /etc/letsencrypt/options-ssl-apache.conf
    </VirtualHos

and in /etc/apache2/mods-enabled/dir.conf

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.md
</IfModule>
Max Muster
  • 337
  • 2
  • 6
  • 27

0 Answers0