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].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to