Alias to twisted server content?
I have buildbot, using twisted, configured to run on port 8010.
If I navigate to http://mysite.com:8010
I can access everything just fine. However, I want people to see the page at http://mysite.com/build
Right now I redirect, but I'd prefer to somehow alias it but I don't know how to do that with a port (I know how to remap to a different directory, but not to a port on the machine).
I'm going to open a more specific question in a new thread
Solution 1:
It's been a while since I've configured a Buildbot instance, but glancing through the master.cfg that is created, I noticed this line:
c['status'].append(html.WebStatus(http_port=8010))
Notice that the port is explicitly set to port 8010. You can change this to be port 80, which is the default http port. You'd have to then run your buildbot as root or use some other mechanism for handling accessing the privileged port. Stop by #buildbot on irc.freenode.net and they could give you some more specific guidance.
I hope that gets you started in the right direction.
Solution 2:
Assumming a Linux system, have you thought of using iptables to reroute port 80 requests to 8010?
I used this technique when I wanted to secure a tomcat/java application that ran as root and used port 80. As port 80 attachment is restricted to root, I ran the tomcat/java app as port 8080 and setup iptables to redirect port 80 requests to port 8080.