1

以前に仮想ホスティングの方法を調整したスクリプト setup-web2py-ubuntu.sh で Web2py をインストールします。ただし、ポート 443 と 80 番目の問題でのみ機能します。

できます!

直し方?

#NameVirtualHost *:80
#NameVirtualHost *:443
# If the WSGIDaemonProcess directive is specified outside of all virtual
# host containers, any WSGI application can be delegated to be run within
# that daemon process group.
# If the WSGIDaemonProcess directive is specified
# within a virtual host container, only WSGI applications associated with
# virtual hosts with the same server name as that virtual host can be
# delegated to that set of daemon processes.
WSGIDaemonProcess demo2.host.ru user=web2 group=client1

<VirtualHost *:80>
  WSGIProcessGroup demo2.host.ru
  WSGIScriptAlias / /var/www/clients/client1/web2/web/web2py/wsgihandler.py
  WSGIPassAuthorization On

  <Directory /var/www/clients/client1/web2/web/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(.*) \
        /var/www/clients/client1/web2/web/web2py/applications/$1/static/$2

  <Directory /var/www/clients/client1/web2/web/web2py/applications/*/static/>
    Options -Indexes
    Order Allow,Deny
    Allow from all
  </Directory>

  <Location /admin>
  Deny from all
  </Location>

  <LocationMatch ^/([^/]+)/appadmin>
  Deny from all
  </LocationMatch>

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
</VirtualHost>

<VirtualHost *:443>
  SSLEngine on
  SSLCertificateFile /usr/local/ispconfig/interface/ssl/ispserver.crt
  SSLCertificateKeyFile /usr/local/ispconfig/interface/ssl/ispserver.key
WSGIProcessGroup demo2.host.ru
  WSGIScriptAlias / /var/www/clients/client1/web2/web/web2py/wsgihandler.py
  WSGIPassAuthorization On

  <Directory /var/www/clients/client1/web2/web/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(.*) \
        /var/www/clients/client1/web2/web/web2py/applications/$1/static/$2

  <Directory /var/www/clients/client1/web2/web/web2py/applications/*/static/>
    Options -Indexes
    ExpiresActive On
    ExpiresDefault "access plus 1 hour"
    Order Allow,Deny
    Allow from all
  </Directory>

  CustomLog /var/log/apache2/access.log common
  ErrorLog /var/log/apache2/error.log
</VirtualHost>

ファイルを作成します: フォルダー web2py に parameters_443.py と parameters_80.py。

password="pbkdf2(1000,20,sha512)$851a015489"

まだ動作していません...助けてください! :'(

4

0 に答える 0