Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 06:58 am EST
Geeklog Forums
Cannot login: watch out for port based virtual hosts (bug report?)
I tried to configure geeklog to be hosted in a port based virtualhost (eg. www.blah.com:4242). The problem I ran into is that cookies never get sent, so I could not log in (though the credentials I supply are correct, and the user shows up in \'who\'s online\').
In order to use a port based virtual host, one would need to set something like:
$_CONF[\'site_url\'] = \'http://blah.com:4242\';
This repeatably results in inability to log in for me, even if the vhost is set up properly (as evidenced by the fact that I can access the site at that url).
When I change that value such that it does not use the port based vhost, I can log in normally.
I spent an hour troubleshooting this, so hopefully you won\'t have to
-andre
9
10
Quote
Darryl
Anonymous
I tried to configure geeklog to be hosted in a port based virtualhost (eg. www.blah.com:4242). The problem I ran into is that cookies never get sent, so I could not log in (though the credentials I supply are correct, and the user shows up in 'who's online'.
In order to use a port based virtual host, one would need to set something like:
$_CONF['site_url'] = 'http://blah.com:4242';
So is there any fix for this?
9
12
Quote
Darryl
Anonymous
Drats. I know that with Postnuke you can do this...I\'m just wondering what could be the actual cause of this, and what would I have to do to fix this. I don\'t have a choice on my local pc, I have to use port based virtual host.
7
9
Quote
Darryl
Anonymous
finally found the answer to this problem when searching the forums today with just the word \'port\'. Here\'s the post.
Click Me
As the above post says: Change the cookiedomain to your domain, for dyndns.org users... yoursite.dyndns.org
and change the site_url to reference the port you are running on:
$_CONF[\'site_url\'] = \'http://yoursite.dyndns.org:81\';
Works for me
7
6
Quote
All times are EST. The time is now 06:58 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content