Alternate ports and cookies

Mar 03, 2009 16:02

Hey everyone!
Cookies seem to be rejected on ports other then 80.
I have it up and running however I am getting the loopback to home page error on login.

Is it posible to use LJ on a port other then 80, for example 8080?
If so what are the correct settings for $COOKIE_DOMAIN? Or do I need to change something else entirely? I have tried ".hostname.com ( Read more... )

server: config, bugs: missing code, server, bugs

Leave a comment

Comments 9

pauamma March 3 2009, 22:20:35 UTC
I've run a dev install on port 8082 never had problems using cookies, with no need to set $COOKIE_DOMAIN. Can you check on a network capture, or using a browse extension, that your browser gets the cookies and sends them back? If it accepts them and doesn't send them back, check any filtering or cookie rejection settings, and check you don't have a timezone problem that could cause them to expire prematurely.

FAQ 162 may also help you troubleshoot. (It's geared at LiveJournal itself, but most of what it says is likely applicable to your problem as well.)

Reply

danteferret March 4 2009, 12:57:19 UTC
Oh well. It was due to me setting some other domain settings incorectly.

Did you know setting DOMAIN to "hostname.com" and SITEROOT to "http://$DOMAIN:8080" creates an infinite redirect when viewing any page?

I had to get around it by creating a subdomain and tacking it onto SITEROOT.

Now I have a new problem. All journal pages display the "we are working on something" message, and some other system pages like update journal don't display at all.

My installation is at http://cubecorp.org:8080 if it helps.

Reply

danteferret March 4 2009, 13:44:45 UTC
I just found out the above new problem only exists when logged in. Journals and other pages function fine when not logged in. Now I am really confused.

Reply

danteferret March 4 2009, 14:42:25 UTC
I'm actualy starting to think the livejounal code is not capable of running as is.

On the pages that do load when logged in I get a few errors. Most notably are:

[Error: unknown class 'betafeatures' at /home/lj/cgi-bin/ljcapabilities.pl line 65. @ livejournal]
and
[Error: Can't locate object method "is_sup_enabled" via package "LJ::SUP" (perhaps you forgot to load "LJ::SUP"?) at /home/lj/cgi-bin/weblib.pl line 2067. @ livejournal]

Reply


soph March 4 2009, 01:04:22 UTC
Your problem is likely that you altered $DOMAIN to include the port number. You shouldn't do that - instead, you should alter $SITEROOT.

Reply

danteferret March 4 2009, 12:58:17 UTC
No I knew that. Thanks though :3

Reply


Leave a comment

Up