Forum Moderators: phranque

Message Too Old, No Replies

two domains

mod_rewrite

         

dtandukar

5:32 pm on Jul 29, 2009 (gmt 0)

10+ Year Member



Hello, i have two domains abc.org in linux and abc.net in windows.

now i need to have abc.org/geoportal and this should host or give the site abc.net but not redirect.

please suggest how can i do this?

Regards,
Deependra

jdMorgan

6:16 pm on Jul 29, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Set up a reverse proxy to pass requests from abc.org/geoportal to the abc.net server. See Apache mod_proxy.

As noted in the documentation, do not enable forward proxying, as this presents a security risk and is not needed in the present case.

Note that all requests proxied through abc.org will appear to originate from the abc.org server; If you want to log the actual client IP addresses on abc.net, you will have to configure abc.org to forward those client IP addresses in the HTTP X-Forwarded-For header, and configure the abc.net server to log X_Forwarded_For instead of REMOTE_ADDR if the X-Forwarded-For header is not blank.

This is an advanced hosting setup; If you are not fully-versed in configuring proxy servers, there is the possibility of potentially-serious problems. If abc.net is an IIS server, you will need both Apache and IIS expertise, and this will make it even more difficult. Therefore, you should consider paying your host or a consultant to do this configuration for you unless you're comfortable with doing it yourself.

Jim

dtandukar

12:10 am on Jul 30, 2009 (gmt 0)

10+ Year Member



thanks that could be my solution but my hosting provider doesn't allow to do proxy reverse - what could be the alternative?

Regards,
Deependra

jdMorgan

12:36 am on Jul 30, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you don't want to redirect, then you'll need a new host, apparently...

Jim

dtandukar

6:10 am on Aug 4, 2009 (gmt 0)

10+ Year Member



Now my problem is with path of images and css? how do i solve this?

dtandukar

6:10 am on Aug 4, 2009 (gmt 0)

10+ Year Member



Now my problem is with path of images and css? how do i solve this?