Welcome to WebmasterWorld Guest from 54.163.84.187

Forum Moderators: Ocean10000 & incrediBILL & phranque

Implemented a mod_rewrite to an IP:PORT

But I want to display URL/domain name instead of IP:Port in browsers

   
2:48 pm on Sep 12, 2003 (gmt 0)

10+ Year Member



I've successfully been able to rewrite a URL to a new IP and PORT address but I want the users browser to see the URL name that they entered and not the redirected IP:PORT.

Is there a way to do this without reverse proxy?

If not, How can I implement some sort of module to handle what the browser receives?

Thanks,

James

2:09 am on Sep 15, 2003 (gmt 0)

10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], minibaci/James!

It may help to show us what you've got so far in terms of the rewrite so that we have a more concrete idea of what modifications can be done.

7:08 pm on Sep 15, 2003 (gmt 0)

WebmasterWorld Administrator bakedjake is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Is there a way to do this without reverse proxy?

Not with mod_rewrite.

If not, How can I implement some sort of module to handle what the browser receives?

Well, you could write a perl or C program to do it, but it'd still be "proxying" content in a sense.

What's your aversion to proxying?

4:47 pm on Sep 17, 2003 (gmt 0)

10+ Year Member



Thanks to those that responded.
I don't have an aversion to proxing if I can send the requested URL name back to the browser and re-routed.

When n2htest comes in on 80, I send it to a new child process but the returned URL is 222.222.22.2:1026/

Here's an example of my mod_rewrite code. Hope the help you help me.

Thanks

NameVirtualHost 222.222.22.2:80

<Virtualhost 222.222.22.2:80>

RewriteEngine on

RewriteLog logs/rewrite.log
RewriteLogLevel 9

RewriteCond %{HTTP_HOST} ^n2htest [NC]
RewriteRule ^/(.*)$ [222.222.22.3:1026...] [R,L]

RewriteCond %{HTTP_HOST} ^a0test [NC]
RewriteRule ^/(.*)$ [222.222.22.3:1025...] [R,L]

</VirtualHost>

 

Featured Threads

Hot Threads This Week

Hot Threads This Month