Running django and flask on same apache server

前端 未结 2 777
感情败类
感情败类 2021-01-17 17:59

I am trying to run to run django and flask on the same apache server.

WSGISocketPrefix /var/www/wsgi

        ServerAdmin name@email.         


        
2条回答
  •  隐瞒了意图╮
    2021-01-17 18:16

    I'm not sure if this would solve the problem, but have you tried changing the order of your script alias so that /app1 is found before / ?

    WSGISocketPrefix /var/www/wsgi
    
            ServerAdmin name@email.com
            ServerName  domain.com
            ServerAlias www.domain.com
            DocumentRoot /var/www/
            LogLevel warn
            WSGIDaemonProcess apache processes=2 maximum-requests=500 threads=1
            WSGIProcessGroup apache
            Alias /media /var/www/media/
            WSGIScriptAlias /app1 /var/www/flaskapps/app.wsgi
            WSGIScriptAlias / /var/www/djangoapps/django.wsgi
    
    
    

提交回复
热议问题