Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

can i forward apache to another ipaddress?

Posted on 2004-11-20
8
Medium Priority
?
207 Views
Last Modified: 2010-03-04
i want to forward all incoming localhost:83 to another ipaddress for internal users only



the localhost is where im setting up the changes in the conf file in apache its already listening at port 83
and i have a few virtual servers setup now im just in need of a forward to another machine

i want to forward to this
ip is at 192.168.1.2 on port 80
0
Comment
Question by:aot2002
  • 4
  • 4
8 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12637687
for localhost virtual section you can use following config:

RewriteEngine on
RewriteCond   %{REMOTE_HOST}  ^\.your_internal_domain\.com$
RewriteRule   ^(.+)         http://192.168.1.2/$1 [R,L]

0
 
LVL 1

Author Comment

by:aot2002
ID: 12640570
<VirtualHost *:83>
       # DocumentRoot "C:/Program Files/NuSphere/TechPlat/apache/htdocs/video/"
RewriteEngine on
RewriteCond   %{REMOTE_HOST}  ^\.your_internal_domain\.com$
RewriteRule   ^(.+)         http://192.168.1.2/$1 [R,L]
</VirtualHost>


>>>> ok heres my apache httpd.conf
page cannot be displayed
WHAT GIVES ???
0
 
LVL 1

Author Comment

by:aot2002
ID: 12640572
shouldne the 192.168.1.2 be ok if i can paste it in a webbrowser
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 19

Expert Comment

by:ramazanyich
ID: 12641915
yes, first you should try http://192.168.1.2 in browser.
You can replace it by hostname in config : eg http://www.myhost.com/$1 
Also what I see that you put RewriteRules to default VirtualHost. Do you have separate Virtual Host for 192.168.1.2 ?
0
 
LVL 1

Author Comment

by:aot2002
ID: 12646629
>>Do you have separate Virtual Host for 192.168.1.2 ?

No should I ?

also the http://192.168.1.2 comes right up .??

0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12648068
Just tried on my PC:
RewriteEngine on
RewriteCond %{REMOTE_ADDR}  217.136.120.62$
RewriteRule ^(.+) http://www.google.com/search?q=$1 [L,R]

And it works fine.
0
 
LVL 1

Author Comment

by:aot2002
ID: 12662090
ok but are you placing these in the virtual servers area
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 2000 total points
ID: 12662473
RewriteEngine on
is on main server area
and RewriteCond and RewriteRule in VirtualServer area
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question