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>