logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Hardware & Networking View previous topic :: View next topic
Reply to topic   Topic: Using Apache to access other LAN devices from the outside
Author
thenilerivr



Joined: 02 Feb 2009
Posts: 1

PostPosted: Mon 02 Feb '09 22:20    Post subject: Using Apache to access other LAN devices from the outside Reply with quote

I have been trying to set up a website that will enable users to access devices on my LAN through an Apache server. The main scope of this project is to have video and camera controls available over the internet that are currently only accessible from with my LAN. I think I could also do this using port forwarding on my router to access each device on a different port, but it seems a bit messy. I played around with the proxy functions for a while, but I don't think that is what I want. I currently have the router forwarding port 80 to my server and the site is visible on the web, and I can have it route to one of the devices and then it is visible.

How can I have a user go to www.example.com/device1 and have it access http://192.168.250.213 inside the LAN?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 05 Mar '09 13:13    Post subject: Reply with quote

You can set up a reverse proxy for that.

a short example (requieres mod_proxy_html)

Code:

ProxyPass /google/ http://www.google.de/
ProxyPassReverse /google/ http://www.google.de/

ProxyHTMLURLMap http://www.google.de /google/

<Location /google/>
   ProxyHTMLCharsetDefault ISO-8859-1
   ProxyHTMLExtended On
   ProxyPassReverse /
   SetOutputFilter  proxy-html
   ProxyHTMLURLMap / /google/
   ProxyHTMLURLMap  /google/ /google/     
   RequestHeader    unset  Accept-Encoding
</Location>
Back to top


Reply to topic   Topic: Using Apache to access other LAN devices from the outside View previous topic :: View next topic
Post new topic   Forum Index -> Hardware & Networking