Forum Moderators: phranque

Message Too Old, No Replies

how to setup a proxy server

         

Hitman3266

10:30 am on Aug 23, 2006 (gmt 0)

10+ Year Member



my question goes to this thread: [webmasterworld.com...]

how would i go about setting up a proxy server?

jdMorgan

1:06 pm on Aug 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer would necessarily depend on what you're trying to accomplish. It's a rather 'big' subject, and well beyond the scope of a forum post.

I'd suggest starting with the extensive Apache mod_proxy documenation [httpd.apache.org], and then post specific questions here.

Jim

Hitman3266

1:49 pm on Aug 23, 2006 (gmt 0)

10+ Year Member



well i got mod_proxy to work, however when it sends to the site all the sites links are under olddomain, and is there anyway i can use mod_rewrite to basically, sync the proxy servers newdomain so when it proxypassreverse to the olddomain all the links will be under the newdomain

jdMorgan

5:41 pm on Aug 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you want the on-page links to show the domain of the site that they are actually being served from, then you must use server-relative or page-relative URLs in your on-page links. In other words, edit the pages or the script that produces those pages.

It is the browser that resolves on-page links. If you use a relative link, then the browser will resolve the URL by combining it with the URL shown in the address bar. If you use a canonical link, i.e. http://www.example.com/page.com, then the browser will simply request that URL, and ignore the 'current' page URL in tha address bar.

If you modify your pages to use relative links, such as <a href="/page.html"> or <a href="page.html"> or <a href=../images/static/logo.gif"> then you must also take steps to make sure that your site is accessible under only the canonical domain name that you prefer. That is, 301 redirect example.com and anything-except-www.example.com to www.example.com. Or redirect everything to example.com. Just pick one. You will also need to make allowances for locahost in this code. If you allow the site to be accessed under multiple domain variants, and you use server-relative or page-relative URLs, then search engines may find and list your pages under all of those domain variants. That will split your PageRank and link-popularity across multiple URLs, which is *not good*.

Jim