Score:0

angular and wsgi-flask on apache

cn flag

0

I can't run both wsgi and angular on apache at the same time. Although if you remove or wsgi or angular from the example.com.conf file, then they work, but if they are together, then they don’t. help solve the problem

centos 7

<VirtualHost *:443>
    ServerName www.example.com
    ServerAlias example.com
    DocumentRoot /var/www/example.com
    ErrorLog /var/www/example.com/log/error.log
    WSGIDaemonProcess app processes=3 threads=20
    WSGIScriptAlias / /var/www/example.com/wsgi.py

    <Directory /var/www/example.com>
        Order deny,allow
        Allow from all
    </Directory>

    SSLEngine on
    SSLCertificateFile /etc/httpd/ssl/las.pem
    SSLCertificateKeyFile /etc/httpd/ssl/las.key

</VirtualHost>

<VirtualHost *:4200>
        ServerName www.example.com
        ServerAlias example.com
        DocumentRoot /var/www/example.com/html
        ErrorLog /var/www/example.com/log/error.log
        CustomLog /var/www/example.com/log/requests.log combined

        SSLEngine on
        SSLCertificateFile /etc/httpd/ssl/las.pem
        SSLCertificateKeyFile /etc/httpd/ssl/las.key
</VirtualHost>


<VirtualHost *:80>
    RewriteEngine On
    RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.