and you must use http://mydomain.fr for the wsgiscriptalias to match -
not the ip address

WRONG - http://192.168.1.19/mydomain   because - you are asking the
host to use the IP - not matching the write host directive.

WRONG - http://192.168.1.19/mydomain/somethingI get a 404 - because
you are still not matching the host name

RIGHT - http://mydomain.fr/
RIGHT - http://mydomain.fr/residencegrenoble/accueil

these will match the domain name - assuming that your domain name IS
actually mydomain.fr and that it resolves on your computer.

if your domain name does not resolve on your computer - you may trick
your computer into "LOCAL RESOLUTION" by adding an entry into your
local hosts telling it to resolve the domain to your machine.  on a
linux box edit /etc/hosts with a line that looks like this


----------------------------------------
# /etc/hosts
# Host Database

127.0.0.1  mydomain.fr

---------------------------------------



On Sun, Aug 2, 2009 at 9:54 AM, Damjan<[email protected]> wrote:
>
>
>
> 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
> >
>



-- 
P THINK BEFORE PRINTING: is it really necessary?

This e-mail and its attachments are confidential and solely for the
intended addressee(s). Do not share or use them without approval. If
received in error, contact the sender
and delete them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to