homepage Welcome to WebmasterWorld Guest from 204.236.254.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Implemented a mod_rewrite to an IP:PORT
But I want to display URL/domain name instead of IP:Port in browsers
minibaci




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

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

 

closed




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

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.

bakedjake




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

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?

minibaci




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

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>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved