Score:0

apache2 mod_md module is offering ".md" files to download

se flag

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>
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.