Thanks Chris - Adding FORCE_SCRIPT_NAME=”" has resolved the issue for me :-)
Cheers, Patrick On Dec 16, 4:21 pm, Chris Moffitt <[email protected]> wrote: > I think you may need to use FORCE_SCRIPT_NAME in your settings. > > http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#force... > > -Chris > > > > > > > > On Wed, Dec 15, 2010 at 2:43 AM, Patrick Rynhart <[email protected]> wrote: > > I'm attempting to deploy a Satchmo site using lighttpd. I have a > > runfcgi application running as follows: > > > /usr/bin/python /satchmoStores/coochykid/store/manage.py runfcgi > > host="127.0.0.1" port=11666 pidfile="/var/run/palpad.pid" > > > My lighttpd.conf file is posted below. My URL rewrite rule is working > > correctly, for if I go to URLs directly such as: > > >http://SATCHMOSERVER/ > >http://SATCHMOSERVER/category/book/fiction/ > > > then content is served. My problem is that the URLs returned by > > Satchmo (when visiting any page) incorrectly include "/palpad.fcgi" in > > the path. For instance, the link to the shopping cart is hyperlinked > > as: > > >http://SATCHMOSERVER/palpad.fcgi/cart/ > > > Similarly, "Contact Us" is hyperlinked as: > > >http://SATCHMOSERVER/palpad.fcgi/contact/ > > > Obviously this fails (due to the URL rewrite rule) as attempts are > > being made to navigate to: > > >http://SATCHMOSERVER/palpad.fcgi/palpad.fcgi/cart/ > > > etc > > > If someone could please let me know what changes need to be made to > > resolve this problem (or provide some hints!), this would be > > appreciated. > > > Thanks, > > > Patrick > > > ------------------- > > lighttpd.conf > > ------------------- > > > server.modules = ( "mod_rewrite", "mod_redirect", "mod_alias", > > "mod_access", "mod_auth", "mod_fastcgi", "mod_cgi", "mod_accesslog" ) > > > server.document-root = "/satchmoStores/coochykid/store/" > > fastcgi.server = ( "/palpad.fcgi" => > > (( > > "check-local" => "disable", > > "host" => "127.0.0.1", > > "port" => 11666, > > )), > > ) > > > url.access-deny = ( "~", ".inc" ) > > alias.url = ( > > "/media/" => "/usr/local/lib/python2.6/dist-packages/django/contrib/ > > admin/media/", > > "/static/" => "/coochykid/store/static/", > > ) > > > url.rewrite-once = ( > > "^(/.*)$" => "/palpad.fcgi$1", > > ) > > > -- > > You received this message because you are subscribed to the Google Groups > > "Satchmo users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<satchmo-users%2bunsubscr...@goog > > legroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/satchmo-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Satchmo users" 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/satchmo-users?hl=en.
