From: Ben H. <ph...@gr...> - 2005-09-13 18:50:29
|
Hi, I am connecting to a wiki that exists in a private network through an ssh tunnel. =20 wiki: http://10.0.0.10/wiki me: 192.168.1.100 public IP 123.45.67.89 has internal IP 10.0.0.89 ben@me ~$ ssh -L8080:10.0.0.10:80 123.45.67.89 connect to http://localhost:8080/wiki My problem is that when I load this page with Firefox, it interprets the "base href" tag on the page to write all the links with their full path, i.e. http://10.0.0.10/wiki/index.php/PageName Heavily excerpted HTML: <html> <head> <base href=3D"http://10.0.0.10/wiki/index.php/" /> </head> <body> <a href=3D"PageName" class=3D"wiki">PageName</a> </body> </html> So, firefox reads this to mean that when I click on PageName, it takes me to http://10.0.0.10/wiki/index.php/PageName. Obviously, this doesn't work. I see that base href is specified in the templates: [ben@punchout wiki]$ grep -ri "base href" * themes/Crao/templates/head.tmpl:<base href=3D"<?=3DPHPWIKI_BASE_URL?>" /> themes/wikilens/templates/head.tmpl:<base href=3D"<?=3DPHPWIKI_BASE_URL?>" = /> themes/default/templates/dialog.tmpl:<base href=3D"<?=3DPHPWIKI_BASE_URL?>"= /> themes/default/templates/head.tmpl:<base href=3D"<?=3DPHPWIKI_BASE_URL?>" /> themes/default/templates/redirect.tmpl:<base href=3D"<?=3DPHPWIKI_BASE_URL?= >" /> I would like to strip out the 'base href', but I'm not sure what other effects this will have, or if this in even the right way to do it. Do you have any advice on how to streamline connecting to a wiki through a tunnel? Thanks, -ben --=20 Ben Hartshorne email: be...@ha... http://ben.hartshorne.net |