logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



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

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Using Apache to access other LAN devices from the outside

 
Post new topic   Reply to topic    Apache Forum Index -> Hardware & Networking



View previous topic :: View next topic  
Author Message
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: 6255
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


Post new topic   Reply to topic    Apache Forum Index -> Hardware & Networking
Page 1 of 1