On Windows it's at WINDOWS\system32\drivers\etc\hosts .

Chris Petersen wrote:

Depending on how I acces my box it sometimes works (after messing with the default http.conf file that comes with Slackware with wich php sessions certaily won't work) but I have to redo the settings if I connect on my local network, from outside using my dyndns adres, from localhost on the machine itself or trough a ssh forwarded port.


This is not a problem with mythweb. It's merely a function of how cookie security works. Mythweb attempts to autodetect its address as best it can (which is why I suggest turning on "canonical names" in the apache config). It then uses this address to set your session cookie -- cookies are bound to domain names or IP addresses.

So if your box thinks its name is "myth.domain" and you access it as "localhost" your browser will not let "localhost" see the cookies for "myth.domain" because it's a security risk.

If you don't have a way to always use your outside dyndns address (port forwards on your firewall for internal access), then consider using a "hosts" entry (/etc/hosts in linux -- there are windows and macos equivalents that I don't know off-hand) for machines you want to connect to.. such that "myth.domain" always resolves to your mythbox, whether you're inside your net or not. Then just set mythweb to say that it is "myth.domain" and your cookies will work properly.

It doesn't matter which address you use to access mythweb -- it only matters which name (or ip) your browser THINKS it's talking to.

-Chris
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to