styxit / HTPC-Manager

A fully responsive interface to manage all your favorite software on your Htpc.
http://htpc.io
MIT License
529 stars 183 forks source link

Commandline --webdir message #285

Closed the4tress closed 9 years ago

the4tress commented 10 years ago

Remove webdir slash from command line. When using a custom webdir, the command line includes two slashes when specifying the url.

So _go to IP:PORT//hptc * should be *_IP:PORT/htpc**

Original issue:


I'm trying to run HTPC Manager with mod proxy, but I can't seem to get webdir working correctly. I tried both in the webui and from cli using --webdir.

If I do python Htpc.py --webdir htpc it starts with the following output:

2014-08-24 01:33:19 :: root :: INFO :: Welcome to HTPC-Manager! 2014-08-24 01:33:19 :: root :: INFO :: Loglevel set to info 2014-08-24 01:33:19 :: htpc.updater :: INFO :: Using GitUpdater engine 2014-08-24 01:33:19 :: modules.xbmc :: WARNING :: No configured XBMC-Servers. 2014-08-24 01:33:19 :: htpc.server :: INFO :: Starting up webserver


Starting HTPC Manager on port 8085. Start your browser and go to http://localhost:8085/htpc


2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Listening for SIGHUP. 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Listening for SIGTERM. 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Listening for SIGUSR1. 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Bus STARTING 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Started monitor thread '_TimeoutMonitor'. 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Serving on 0.0.0.0:8085 2014-08-24 01:33:19 :: cherrypy.error :: INFO :: [24/Aug/2014:01:33:19] ENGINE Bus STARTED

But when I browse to http://myip:8085/htpc I get a blank page.

If I remove --webdir it works fine.

This is on a remote machne, so I'm not sure if --webdir changes the listing IP, but I see in the log its listening on 0.0.0.0:8085, so I'm stumped...

Any suggestions?

Hellowlol commented 10 years ago

Just a silly question but you have forced refreshed after you set the webdir?

the4tress commented 10 years ago

Yes, I did refresh the cache.

Also tried in a fresh browser that had never been to the URL.

mannibis commented 10 years ago

I noticed that doesn't work either. However, if you put "/htpc" as --wedbir, it will work. The prompt will tell you to go to IP:PORT//hptc but just going to IP:PORT/htpc will work. Try that out

techpad-marcb commented 10 years ago

I had this very same issue. It was all around how you proxy is setup. This conf is working for me with a subdomain.

<VirtualHost *:80>
  ServerAdmin webmaster@localhost
    ServerName htpc.xxxxxxxxxx.com

    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>

    ProxyPass / http://192.168.0.100:8083/
    ProxyPassReverse / http://192.168.0.100:8083/

general-settings

the4tress commented 10 years ago

@mannibis that fixed it. I feel dumb for not trying that since it makes sense.

Still having other issues with my apache settings, but its not a HTPC Man issue.

Thanks for the help.

Not sure if you want to close this or leave it open as an issue?