Deploying django webapp but shown the welcome page of index html

Discussion in 'Installation/Configuration' started by appost, May 29, 2014.

  1. appost

    appost New Member

    Hi, I am using ISPConfig Version: 3.0.5.4p1 on Debian Wheezy. I tried to install ISPConfig on a new virtual machine. I followed this howto http://www.howtoforge.com/perfect-server-debian-wheezy-apache2-bind-dovecot-ispconfig-3.
    I have problems to deploy a django web-application:

    I added in web-domain's option tab:
    Code:
            WSGIScriptAlias / /var/www/clients/client2/web1/mydjangoapp/wsgi.py
            WSGIDaemonProcess site-1 threads=10
            WSGIProcessGroup site-1
    
    
    I continue to see the welcome page of autogenerated index.html (if I remove it I obtain the forbidden page)

    There error.log is empty, I tried to ls the wsgi file and the file exist.

    I tried in web folder too, so the option tab became:
    Code:
            WSGIScriptAlias / /var/www/clients/client2/web1/web/mydjangoapp/wsgi.py
            WSGIDaemonProcess site-1 threads=10
            WSGIProcessGroup site-1
    
    
    but the result is the same.


    This is my htf_report (I fixed the warning too)
    Code:
    
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [WARN] ip addresses from hostname differ from ifconfig output. Please check your ip settings.
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.4.4-14+deb7u9
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.4.4-14+deb7u9
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
    	Apache 2 (PID 12248)
    [INFO] I found the following mail server(s):
    	Postfix (PID 3511)
    [INFO] I found the following pop3 server(s):
    	Dovecot (PID 3146)
    [INFO] I found the following imap server(s):
    	Dovecot (PID 3146)
    [INFO] I found the following ftp server(s):
    	PureFTP (PID 3167)
    
    ##### LISTENING PORTS #####
    (only		()
    Local		(Address)
    [anywhere]:3306		(2931/mysqld)
    [anywhere]:587		(3511/master)
    [localhost]:11211		(2542/memcached)
    [anywhere]:110		(3146/dovecot)
    [anywhere]:143		(3146/dovecot)
    [anywhere]:42575		(1735/rpc.statd)
    [anywhere]:111		(1704/rpcbind)
    [anywhere]:465		(3511/master)
    [anywhere]:21		(3167/pure-ftpd)
    [anywhere]:22		(2884/sshd)
    [anywhere]:25		(3511/master)
    [anywhere]:993		(3146/dovecot)
    [anywhere]:995		(3146/dovecot)
    [localhost]:10025		(3511/master)
    *:*:*:*::*:587		(3511/master)
    [localhost]10		(3146/dovecot)
    [localhost]43		(3146/dovecot)
    [localhost]11		(1704/rpcbind)
    *:*:*:*::*:8080		(12248/apache2)
    *:*:*:*::*:80		(12248/apache2)
    *:*:*:*::*:8081		(12248/apache2)
    *:*:*:*::*:465		(3511/master)
    *:*:*:*::*:21		(3167/pure-ftpd)
    *:*:*:*::*:22		(2884/sshd)
    *:*:*:*::*:25		(3511/master)
    *:*:*:*::*:443		(12248/apache2)
    *:*:*:*::*:993		(3146/dovecot)
    *:*:*:*::*:995		(3146/dovecot)
    *:*:*:*::*:51112		(1735/rpc.statd)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    fail2ban-dovecot-pop3imap  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 110,995,143,993
    fail2ban-pureftpd  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 21
    fail2ban-sasl  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 25
    fail2ban-ssh  tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain fail2ban-dovecot-pop3imap (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-pureftpd (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-sasl (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    
    Any helps? Thank you
     
  2. appost

    appost New Member

    I disabled, saved and re-enabled the python check. I obtain now the forbidden page and the error:
    Code:
    [Fri May 30 16:30:09 2014] [error] [client 192.168.122.1] client denied by server configuration: /var/www/clients/client2/web1/mydjangoapp/wsgi.py
    
     

Share This Page