I'll see what I can do about the first issue; it may require custom modifications to the phpBB code, which when upgrading between versions (not just talking about the 2.x -> 3.x upgrade in another thread), could be lost or cause problems for the patcher.
As for the 2nd issue, that's because cookies set a domain name within them. In this case, phpBB code gets the request for
http://nesdev.com/bbs/, but returns you a cookie that is tied to nesdev.com. Verification (note the two Set-Cookie HTTP response headers, "domain" fields):
Code: Select all
$ curl -i -I http://nesdev.com/bbs/
HTTP/1.1 200 OK
Date: Tue, 03 Jan 2012 21:01:23 GMT
Server: Apache
X-Powered-By: PHP/5.3.8
Set-Cookie: phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D; expires=Wed, 02-Jan-2013 21:01:23 GMT; path=/; domain=nesdev.com
Set-Cookie: phpbb2mysql_sid=4994f0f53dbb538cc2aaf63e428f388a; path=/; domain=nesdev.com
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
This is one of the many problems with having "multiple domains pointing to the same thing".
As such, I've changed our Apache configuration to redirect any
http://nesdev.com or
http://www.nesdev.com URLs to their appropriate
http://nesdev.com URL.
http://wiki.nesdev.com will not be affected. Example:
Code: Select all
$ curl -i -I http://nesdev.com/bbs/
HTTP/1.1 301 Moved Permanently
Date: Tue, 03 Jan 2012 21:13:59 GMT
Server: Apache
Location: http://nesdev.com/bbs/
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
$ curl -i -I http://nesdev.com/blah/
HTTP/1.1 301 Moved Permanently
Date: Tue, 03 Jan 2012 21:14:05 GMT
Server: Apache
Location: http://nesdev.com/blah/
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1