The latest build of G2 dosen't work on ports other than 80
ottoto
Joined: 2004-02-24
Posts: 11
Posted: Tue, 2004-03-09 14:02
I just installed the 9th March build of G2. My G2 is running on port 8082. After entering the new main page, all the hyperlinks within the page are set to "http://mysite:8082:8082/.....". Of course the links dosen't work.
Bharat, perhaps the HTTP_HOST server variable already contains the port? ottoto, you can edit modules/core/classes/GalleryUrlGenerator.class line 124 and change $port to '' to fix this on your server until we get a fix in place.
Thanks.
bharat
Joined: 2002-05-21
Posts: 7985
Posted: Wed, 2004-03-10 10:13
Yep, you're right -- HTTP_HOST does contain the port number. I changed GalleryUrlGenerator to remove the code that tacked on the port number and verified that it works on my Apache2/PHP4.3.4 box (I put my box on port 8082 temporarily).
Posts: 8601
Bharat, perhaps the HTTP_HOST server variable already contains the port?
ottoto, you can edit modules/core/classes/GalleryUrlGenerator.class line 124 and change $port to '' to fix this on your server until we get a fix in place.
Thanks.
Posts: 7985
Yep, you're right -- HTTP_HOST does contain the port number. I changed GalleryUrlGenerator to remove the code that tacked on the port number and verified that it works on my Apache2/PHP4.3.4 box (I put my box on port 8082 temporarily).