skip to Main Content

Where do I copy my VirtualHost directive in my Apache docker image?

I'm trying to Dockerize my Apache/Django project locally. On my local machine (running Mac Sierra) I have this file (maps.conf) in my /etc/apache2/other/ directory ... <VirtualHost *:80> ServerName maps.example.com Alias /static /Library/WebServer/Documents/maps/maps/static <Directory /Library/WebServer/Documents/maps/maps/static> Require all granted </Directory> # Next,…

VIEW QUESTION

Redis – Interactions between HTTP and websocket connections in Django Channels

I have a frontend consumer that handles HTTP requests (webhooks) from django.views.decorators.csrf import csrf_exempt from channels.generic.http import AsyncHttpConsumer from django.http import JsonResponse import json import myapp.models import redis @csrf_exempt class frontEndConsumer(AsyncHttpConsumer): async def http_request(self, request): await self.channel_layer.group_add("link", self.channel_name) await self.channel_layer.group_send("link",…

VIEW QUESTION
Back To Top
Search