On Aug 2, 11:24 am, dani <[email protected]> wrote:
> Hello,
>
> I'm experiencing werkzeug on a simple application (using only template
> system evoque coupled with werkzeug routing and SharedDataMiddleware).
> It works perfectly while serving in development environment using
> werkzeug run_simple.
>
> I struggled for a couple of days trying running it on apache and
> mod_wsgi with the instructions
> athttp://werkzeug.pocoo.org/documentation/dev/deployment/mod_wsgi.html
>
> Also I've seen posts
> athttp://groups.google.com/group/pocoo-libs/browse_thread/thread/c944af...
>
> Unfortunately I could not manage it and I'm not experienced with
> mod_wsgi, not much with apache. What I see is the following:
> - When requesting the urlhttp://192.168.1.19/mydomain(with no .xx
> whatever), I'm served the filesystem view, instead of the home page
> served trhough the werkzeug application
> - when requestinghttp://192.168.1.19/mydomain/somethingI get a 404
> "The requested URL /residencegrenoble/accueil was not found on this
> server"
>
> My apache configs:
> 1. Virtual host configured
> 2. /var/www/mydomain contains
> <VirtualHost *:80>
> ServerName mydomain.fr
> WSGIScriptAlias / /var/www/mydomain/mydomain.wsgi
> <Directory /var/www/rmydomain>
> AddHandler wsgi-script .wsgi
> Order deny,allow
> Allow from all
> </Directory>
> ErrorLog /var/log/apache2/error.log
> LogLevel debug
> CustomLog /var/log/apache2/access.log combined
> </VirtualHost>
>
Why don't you use WSGIScriptAlias ? It's much more straight forward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---