How to configure apache2 on ubuntu for django restful services

Viewed 779

I have django restful services on my ubuntu server which are running on port 84.

When the request is send, it come through the apache2 server which is running on port 80.

Now let say my server ip is "xx.xx.xx.10" and when i call with this url http://xx.xx.xx.10/user where user is the rest service running on django rest framework on port 84. Then the request should go to my django rest service through apache2 and return the desired output.

I tried by using the below configuration in the apache2 :-

    <VirtualHost *:80>
     WSGIScriptAlias / /myproject/myapp/test/wsgi.py
     <Directory "/myproject/myapp/test/">        
      <Files "wsgi.py">
        Require all granted
      </Files>
     </Directory>
    </VirtualHost>

but this is giving internal error saying that test.settings does not exits.

is this the right way to configure the restful services running on different port on apache server.

2 Answers
Related