Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirection

Status
Not open for further replies.

Murugs

Technical User
Jun 24, 2002
549
0
0
US
Hello All

How do I change the configuration settings or redirect in apache so that when I point my browser to to load some other url called
Regards
MP
 
Hello:

I suppose that you have your server abc.com properly configured. To make what you want you should use mod_proxy

1) Uncomment these lines from yout httpd.conf file:

LoadModule proxy_module libexec/libproxy.so
AddModule mod_proxy.c
<IfModule mod_proxy.c>
ProxyRequests On
#
<Directory proxy:*>
Order deny,allow
# Deny from all
Allow from all
</Directory>

# To connect to the &quot;inside&quot; java servlet server from an outside aws,
# uncomment the following and modify as required.

#RewriteEngine on
#RewriteLog &quot;/tmp/rewrite.log&quot;
#RewriteLogLevel 3
#RewriteRule ^/servlet(.*)$ [P]


#
# Enable/disable the handling of HTTP/1.1 &quot;Via:&quot; headers.
) # (&quot;Full&quot; adds the server version; &quot;Block&quot; removes all outgoing Via: header
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable the cache as well, edit and uncomment the following lines:
# (no cacheing without CacheRoot)
#
#CacheRoot &quot;/opt/vaultWS/install/proxy&quot;
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com

</IfModule>

2)Use the ProxyPass directive

ProxyPass /
Regards.
 
Thanks both of you for answering my question. The first answer was difficult for a beginner like me and I used the redirect command to get my objective easily.

thanks
MP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top