Knowing, from other questions that you have python installed, presumably at least python 2.5.4 on XP. All you need to run a basic web server on XP with no admin rights is simply cd
to the root directory of your static web structure, (the one with the top index.html
in), and then type:
python -m SimpleHTTPServer 8000
This will start, on that machine, a simple, static, server on port 8000 alternatively you can put into a simple script, in the same directory:
import SimpleHTTPServer
import SocketServer
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "serving at port", PORT
httpd.serve_forever()
You can also look at portable python which will allow you to do the same but you might have to add a chdir
to the script.
Both examples are taken from the python 2 manuals.