Open decklord opened 10 years ago
@decklord, I am attempting exactly the same Nginx config as you but failing. Did you get anywhere with this? I just had a look at the circushttpd.py
file and it appears to have absolute paths for everything so it seems to be a general issue, not just a static files issue:
class Application(tornado.web.Application):
def __init__(self):
handlers = [
URLSpec(r'/',
IndexHandler, name="index"),
URLSpec(r'/connect/',
ConnectHandler, name="connect"),
URLSpec(r'/disconnect/',
DisconnectHandler, name="disconnect"),
URLSpec(r'/([^/]+)/add_watcher/',
WatcherAddHandler, name="add_watcher"),
URLSpec(r'/([^/]+)/watcher/([^/]+)/',
WatcherHandler, name="watcher"),
URLSpec(r'/([^/]+)/watcher/([^/]+)/switch_status/',
WatcherSwitchStatusHandler, name="switch_status"),
URLSpec(r'/([^/]+)/watcher/([^/]+)/process/kill/([^/]+)/',
KillProcessHandler, name="kill_process"),
URLSpec(r'/([^/]+)/watcher/([^/]+)/process/decr/',
DecrProcHandler, name="decr_proc"),
URLSpec(r'/([^/]+)/watcher/([^/]+)/process/incr/',
IncrProcHandler, name="incr_proc"),
URLSpec(r'/sockets/',
SocketsHandler, name="all_sockets"),
URLSpec(r'/([^/]+)/sockets/',
SocketsHandler, name="sockets"),
]
Finally I made it work using something like http://circus.localhost/
It didn't work as a "subfolder", circus was assuming that you were on the root. If you find a way, let me know.
Hi, I'm configuring nginx to route circusweb on a subfolder on my app server, as in:
It's working but all the static files are not being loaded properly, their path is absolute to the host, ie:
so it's loading from:
instead of
This is my settings on nginx
With Chrome inspector, removing the first '/' does the trick.