skip to Main Content

Configuring apache. Reverse proxy and alias

In file /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ProxyPass / http://localhost:7000/ </VirtualHost> When I type in the browser the address http://example.com I get a response from the application running on port 7000. What needs…

VIEW QUESTION

i am gettin an error "[Errno 5] Input/output error" while running an api on django – CentOS

Django API Code: def post(self,request)-> JsonResponse: try: self.email = request.data['email'] self.mobile = request.data['mobile'] self.password = request.data['password'] except Exception as e: return JsonResponse(create_failure('400',f"invalid payload {e}","fail")) try: res = {} jwt_token = '' if self.email: password = Customer.objects.get(email=self.email).password username = Customer.objects.get(email=self.email).username print(password)…

VIEW QUESTION
Back To Top
Search