Hi everyone,

I am looking for a way to serve the application via Twisted. The
manual was helpful and I found a solution, but there are some quirks.


The application is available at http://127.0.0.1/app


1. is it possible to make it available as http://127.0.0.1/ ? I don't
   plan to run any other SOAP/XML applications on the same server, so
   shorted URLs are preferred.

   I've looked here and concluded that this is not possible (at least
   not without some understanding of Twisted), but just in case I
   would like to double-check that:
   
https://github.com/arskom/spyne/blob/master/examples/helloworld_soap_twisted.py



2. assuming that it is not possible to serve the application at the
   root directory, I decided that I can live with that; however...
   When I do go to http://127.0.0.1/ instead of http://127.0.0.1/app,
   the contents of the directory is visible and one can view the
   entire source code - this is not good.

   After some tinkering I understood that it can be disabled. I think
   it would be better if the last line of this example:
   
https://github.com/arskom/spyne/blob/master/examples/helloworld_soap_twisted.py

   was changed to
   run_twisted(((wsgi_app, "app"),), 7789, None)
   #the last argument indicates that directory listing is disabled


   I think this should be the default behaviour, as it is safer (no
   passwords will be exposed, etc).


Alex


_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to