Help - Rewrite

Hello,

I need help to do the following redirect in apache:

All we get to http://www.mydomain.com/tracewiki (this is site with a valid ip)
be redirected to my internal server http://10.0.1.101/tracewiki.

Note: Access will be done by external users should be transparent and user pair.

How can I do?

thank you

Does the remote server www.domain.com have access to your internal server? If not, you can’t do it. If it does, you can use Apache’s Reverse Proxy mechanism (example: http://www.apachetutor.org/admin/reverseproxies).

This cannot be solved with a simple RewriteRule or Alias (unless you’re okay with the URL changing in the client’s browser when he visits the site).

cur,

Good answer! The reason is that the IP block starting with 10.(x.x.x) is reserved to a LAN (similar to 192.168.x.x). Okay, I’m sure that you knew that but many would not - and you cannot use a local (LAN) IP address via the Internet.

Regards,

DK

Hello,
Thanks for the replies but I think that did not express myself right. Let me describe the scenario:
My server 200.xxx is in my DMZ and 10.xxx server in my internal network .

Both servers see themselves and communicate.

What is I can not mount the rewrite rules. I want the User to access the external site which is on my internal server. The problem is I do not access directly to / from the site but in the … / abc /

cur,

  1. should be able to access 200. but the inverse should not be true (if the system is properly setup). However, if you say that 200 can see into the 10. “domain,” I’ll have to believe you. However, that does not mean that visitors to 200. will be able to access 10. - only those within 10. should be able to access the 10. “domain.”

The only way I can think for you to manage this is to check your {REMOTE_ADDR} on the 200.xxx server when visiting from the 10.xxx “domain.” If it is 10.xxx.yyy.zzz, then you should be able to redirect BASED upon your {REMOTE_ADDR}. If it’s 200.xxx, then your sysadmin MAY be able to pull some magic out of his hat with your DNS - but I wouldn’t hold my breath.

Regards,

DK