Missing ServerName directives.

On Sep 14, 3:18 pm, Johann Spies <johann.sp...@gmail.com> wrote:
> For me the deployment of web2py seems to be a recurring problem.
>
> I am trying to deploy web2py on a Debian system but not as 'default' .
> I have root access to the system.
>
> I have tried both the example in the book as well as a modified
> version of the ubuntu/debian-setup-script but I only get a directory
> listing.
>
> My setup (the one I modified from the setup-script):
>
> Apache/2.2.16 (Debian) mod_ssl/2.2.16 OpenSSL/0.9.8o mod_wsgi/3.3
> Python/2.6.6rc1+ configured -- resuming normal operations
>
> /etc/apache2/sites-enabled/web2py:
>
> NameVirtualHost *:80
> NameVirtualHost *:443
>
> <VirtualHost *:80>
>   WSGIDaemonProcess web2py user=www-data group=www-data
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>
>   <Directory /var/www/web2py>
>     AllowOverride None
>     Order Allow,Deny
>     Deny from all
>     <Files wsgihandler.py>
>       Allow from all
>     </Files>
>   </Directory>
>
>   AliasMatch ^/([^/]+)/static/(.*) \
>            /var/www/web2py/applications/$1/static/$2
>   <Directory /var/www/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 /etc/apache2/ssl/self_signed.cert
>   SSLCertificateKeyFile /etc/apache2/ssl/self_signed.key
>
>   WSGIProcessGroup web2py
>
>   WSGIScriptAlias / /var/www/web2py/wsgihandler.py
>
>   <Directory /var/www/web2py>
>     AllowOverride None
>     Order Allow,Deny
>     Deny from all
>     <Files wsgihandler.py>
>       Allow from all
>     </Files>
>   </Directory>
>
>   AliasMatch ^/([^/]+)/static/(.*) \
>         /var/www/web2py/applications/$1/static/$2
>
>   <Directory /var/www/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>
>
> Can somebody point out what I am doing wrong and how I can correct it please?
>
> --
>     "Be not deceived; God is not mocked: for whatsoever a
>      man soweth, that shall he also reap."
>                                   Galatians 6:7

Reply via email to