Just upgraded our production machines, Xserver running 10.3 Server, to .14.2 last night. Since doing this all our urls in the applications are now including port number 16080. In Rail .13 an older this was never included. I have dug through the documentation and can not find where this is being picked up, or if it can be disabled in Rails. It is only an issue because we have some remote user who can no long get into the applications from more restrictive networks. Port 16080 on Mac OS X Server is part of Apple''s performance caching feature, though disabled on our server, and normally is not an issue. Any ideas on solving this issue? -- Lon Baker
Lon Baker wrote:> Just upgraded our production machines, Xserver running 10.3 Server, to > .14.2 last night. > > Since doing this all our urls in the applications are now including > port number 16080. > > In Rail .13 an older this was never included. > > I have dug through the documentation and can not find where this is > being picked up, or if it can be disabled in Rails. > > It is only an issue because we have some remote user who can no long > get into the applications from more restrictive networks. > > Port 16080 on Mac OS X Server is part of Apple''s performance caching > feature, though disabled on our server, and normally is not an issue. > > Any ideas on solving this issue? > > -- > Lon Baker > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/railsWhat are you running rails on webrick, lighttpd apache etc?
David Stubbs wrote:> What are you running rails on webrick, lighttpd apache etc?We are running the default Apache 1.3 included in Mac OS X Server. I have narrowed it down the redirect_to command adding the port number. I can manually remove the port number from the URL in a browser and everything works correctly. As soon as a redirect_to command is processed the port number is added to the URL. Right now I am digging into mod_rewrite to see if this is where the solution lies. I guess it is yet another good reason to migrate to Lighttpd soon. :-) -- Lon Baker
I found the solution to the issue of port 16080 being included in redirects under Rail 1.0rc3 (.14.1) on Mac OS X Server 10.3 You must disable Apple''s Performance Cache on ALL sites under Mac OS X Server. If ANY site, not just your rails application virtual host, has the performance cache enabled, Apple''s performance cache listens on port 80 and passes them through to port 16080 for the virtual hosts. Once the performance cache is disabled on every virtual host on the server, only Apache will listen on port 80 and the performance cache will not be running. Rail 1.0rc3 will then display the expected url for redirects, without the port number being included. -- Lon Baker