I'm trying to host 3 django projects in a single digitalocean droplet. Please see the httpd configuration below:
peardb.tabomics.cn and www.peardb.tabomics.cn are working. But www.biotldr.tabomics.cn doesn't work. I tried to ping 'www.biotldr.tabomics.cn'. Here is the result: $ ping biotldr.tabomics.cn PING biotldr.tabomics.cn (198.211.107.37) 56(84) bytes of data. 64 bytes from tabomics.cn (198.211.107.37): icmp_seq=1 ttl=64 time=0.026 ms 64 bytes from tabomics.cn (198.211.107.37): icmp_seq=2 ttl=64 time=0.056 ms 64 bytes from tabomics.cn (198.211.107.37): icmp_seq=3 ttl=64 time=0.060 ms ^C --- biotldr.tabomics.cn ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.026/0.047/0.060/0.016 ms Here is the error message I got from err_log: Thu Feb 08 21:28:55.353854 2018] [core:error] [pid 2717] [client 128.46.93.253:58970] Script timed out before returning headers: wsgi.py [Thu Feb 08 21:28:59.546064 2018] [core:error] [pid 2716] [client 128.46.93.253:58971] Script timed out before returning headers: wsgi.py [Thu Feb 08 21:30:00.997135 2018] [core:error] [pid 2718] [client 128.46.93.253:56698] Script timed out before returning headers: wsgi.py, referer: http://biotldr.tabomics.cn/ *Could someone tell me the possible reasons? Thanks in advance. * ######################## BioTLDR ############################## #Listen 80 WSGISocketPrefix /mnt/volume-nyc1-02/project/BioTLDR/wsgi/wsgi <VirtualHost *:80> ServerName www.biotldr.tabomics.cn ServerAlias biotldr.tabomics.cn www.biotldr.tk biotldr.tk ServerAdmin h...@biotldr.tk ErrorLog "logs/error_log_biotldr" #WSGISocketPrefix /mnt/volume-nyc1-02/project/BioTLDR/wsgi/wsgi Alias /static "/mnt/volume-nyc1-02/project/BioTLDR/static" <Directory "/mnt/volume-nyc1-02/project/BioTLDR/static"> Require all granted </Directory> <Directory "/mnt/volume-nyc1-02/project/BioTLDR/BioTLDR"> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess BioTLDR python-home=/mnt/volume-nyc1-02/project/BioTLDR/vir_env_py3/ python-path=/mnt/volume-nyc1-02/project/BioTLDR:/mnt/volume-nyc1-02/project/BioTLDR/vir_env_py3/lib/python3.6/site-packages/ WSGIProcessGroup BioTLDR WSGIScriptAlias / /mnt/volume-nyc1-02/project/BioTLDR/BioTLDR/wsgi.py #WSGIApplicationGroup %{GLOBAL} </VirtualHost> #k80 ## https://stackoverflow.com/questions/29754226/how-to-configure-wsgisocketprefix WSGISocketPrefix /mnt/volume-nyc1-02/project/pearDB/wsgi/wsgi <VirtualHost *:80> ServerName www.peardb.tabomics.cn ServerAlias peardb.tabomics.cn ServerAdmin serverad...@mydomain.org #ProxyPass / http://tabomics.tk:8008/ #ProxyPassReverse / http://tabomics.tk:8008/ Alias /static "/mnt/volume-nyc1-02/project/pearDB/static" <Directory "/mnt/volume-nyc1-02/project/pearDB/static"> Require all granted </Directory> <Directory "/mnt/volume-nyc1-02/project/pearDB/pearDB"> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess pearDB python-home=/mnt/volume-nyc1-02/project/pearDB/vir_django_py2.7 python-path=/mnt/volume-nyc1-02/project/pearDB/:/mnt/volume-nyc1-02/project/pearDB/vir_django_py2.7/lib/python2.7/site-packages/ WSGIProcessGroup pearDB WSGIScriptAlias / /mnt/volume-nyc1-02/project/pearDB/pearDB/wsgi.py </VirtualHost> #<VirtualHost *:80> # ServerName www.tabomics.cn # ServerAlias tabomics.cn # ErrorLog "logs/error_log_jbrowse" #CustomLog "logs/access_log_tabomics" ### The configure information below should be added. Alias /jbrowse "/mnt/volume-nyc1-02/project/pearDB/jbrowse-pearDB/" <Directory "/mnt/volume-nyc1-02/project/pearDB/jbrowse-pearDB/"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> #</VirtualHost> ##################TabOmics######################################## <VirtualHost *:80> ServerName www.tabomics.cn ServerAlias tabomics.cn ServerAdmin h...@tabomics.cn #ProxyPass / http://tabomics.tk:8008/ #ProxyPassReverse / http://tabomics.tk:8008/ ErrorLog "logs/error_log_tabomics" #CustomLog "logs/access_log_tabomics" Alias /static "/mnt/volume-nyc1-02/project/tabomics/static" <Directory "/mnt/volume-nyc1-02/project/tabomics/static"> Require all granted </Directory> <Directory "/mnt/volume-nyc1-02/project/tabomics/tabomics"> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess tabomics python-home=/mnt/volume-nyc1-02/project/tabomics/vir_tabomics_py2 python-path=/mnt/volume-nyc1-02/project/tabomics/:/mnt/volume-nyc1-02/project/tabomics/vir_tabomics_py2/lib/python2.7/site-packages/ WSGIProcessGroup tabomics WSGIScriptAlias / /mnt/volume-nyc1-02/project/tabomics/tabomics/wsgi.py </VirtualHost> -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04d79519-e483-440b-8349-91014cccf6a4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.