LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-26-2010, 12:47 AM   #1
dpsh
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
Apache mod_proxy, problem with forms


Hello,

I am using Apache mod_proxy to proxy a website on my LAN (mydomain2.com). I have the following settings for which everything works fine. When someone accesses http://mydomain1.com/, it proxies http://mydomain2.com/.

Code:
ProxyPass /   http://mydomain2.com/
I would like to change this to do the following.
1. If someone accesses http://mydomain1.com/ then mydomain1.com is shown.
2. If someone accesses http://mydomain1.com/proxy/ then the domain http://mydomain2.com/ is proxied.

Is it possible to do this?

I tried changing the entry to

Code:
ProxyPass /proxy/   http://mydomain2.com/
This is not working when the proxied website (mydomain2.com) has html forms being submitted. Am I doing something wrong here?

Thanks
 
Old 06-26-2010, 02:01 AM   #2
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Quote:
Originally Posted by dpsh View Post
Code:
ProxyPass /proxy/   http://mydomain2.com/
Change to
Code:
ProxyPass /proxy/   http://<Internal IP of LANwhere you hosted site>
or else in /etc/hosts/
Code:
Internal IP of LANwhere you hosted site  mydomain2.com
 
Old 06-26-2010, 02:28 AM   #3
dpsh
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
I tried putting the LAN IP in ProxyPass. It did not help.
 
Old 06-26-2010, 03:33 AM   #4
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
Paste your vhost file here.
 
  


Reply

Tags
apache, forms, html, modproxy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache mod_proxy log mahmoud Linux - Software 1 06-07-2010 02:54 AM
about the URL when using Apache mod_proxy myhnet Linux - Newbie 0 06-24-2008 08:08 AM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 09:57 PM
Apache 1.3 mod_proxy no cache mago Linux - Software 0 04-07-2006 01:39 PM
Webmin Through Apache using mod_proxy... ech310n Linux - General 0 01-28-2004 05:12 PM


All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration