getting error during ssl of drf api

hello,
i am using django rest framework to create an api an i hosted that api on www.api.arvin…
.com but i am didnt get ssl on my api i am using ubuntu vps server will someone please help me to solve this issue …

the error i got

............................................................
Deploying certificate
Successfully deployed certificate for api.arvindpatilnilangekardotcom to /etc/apache2/sites-available/api.arvindpatilnilangekar.com-le-ssl.conf
Error while running apache2ctl configtest.
Action 'configtest' failed.
The Apache error log may have more information.

AH00526: Syntax error on line 24 of /etc/apache2/sites-enabled/api.arvindpatilnilangekar.com.conf:
Name duplicates previous WSGI daemon definition.

the conf file i have

.................................
<VirtualHost *:80>
    ServerName www.api.arvindpatilnilangekar.com
    ServerAlias api.arvindpatilnilangekar.com
    ServerAdmin contact@a

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /static /var/www/apn/static
    <Directory /var/www/apn/static>
        Require all granted
    </Directory>

    Alias /media /var/www/apn/media
    <Directory /var/www/apn/media>
        Require all granted
    </Directory>

    <Directory /var/www/apn/apn>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>
    WSGIDaemonProcess backend python-home=/var/www/apn/res python-path=/var/www/apn
    WSGIProcessGroup backend
    WSGIScriptAlias /  /var/www/apn/apn/wsgi.py
</VirtualHost>

Side note: When posting code, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of modifying your original post for this.

Your error message specifically references line 24 of your .conf file. Which line is that?

Also, it says that you have a duplicate name. Do you have another conf file being loaded for this application?

If so, please post the complete contents of both files (each file enclosed between lines of ```.)

that line is
“”
WSGIDaemonProcess backend python-home=/var/www/apn/res python-path=/var/www/apn
WSGIProcessGroup backend
WSGIScriptAlias / /var/www/apn/apn/wsgi.py
“”