LinuxQuestions.org
Visit Jeremy's Blog.
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 05-06-2008, 10:05 AM   #1
Carlos2dub
LQ Newbie
 
Registered: Aug 2007
Location: Madrid
Distribution: Debian 4, openSUSE 10.3, RHEL 5
Posts: 24

Rep: Reputation: 15
Apache ProxyPass doubt (ubuntu 6.10, apache 2.0)


Hi all,

I will start with a little description of my situation ´cause maybe a proxypass is not the best option. Basically I need to share the port 443 of the firewall for two web servers. My situation now(I say now ´cause I tried various possibilities) is as follows:

I have added a new virtual server in my /etc/apache2/sites-enabled/000-default in my ubuntu, with this lines:


<VirtualHost *>


ProxyVia on
ProxyPreserveHost On
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / https://fedora:443/
ProxyPassReverse / https://fedora:443/
</VirtualHost>


The Ubuntu server has all the firewall 443 traffic redirected to it and the fedora which is the one I want to ProxyPass from the ubuntu one.

Im a bit confused so some help will be appreciated!

thanks,
Carlos.
 
Old 05-28-2008, 04:43 AM   #2
Carlos2dub
LQ Newbie
 
Registered: Aug 2007
Location: Madrid
Distribution: Debian 4, openSUSE 10.3, RHEL 5
Posts: 24

Original Poster
Rep: Reputation: 15
Solved. This is what I did to make it work.

The concept is that the redirected host acts as a folder in the host which redirects.

I added this lines at the end of my /etc/apache2/sites-enabled/000-default

Redirect /fedora https://ubuntu
<VirtualHost *>
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /fedora https://fedora:443
ProxyPassReverse /fedora https://fedora:443
</VirtualHost>


Thanks !
 
  


Reply


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 - ProxyPass/Reverse wazh Linux - Server 2 02-18-2007 01:27 AM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 09:57 PM
Apache proxypass url prob collen Linux - Software 0 10-14-2005 07:59 AM
apache proxypass, or lighttpd php belorion Linux - General 2 07-15-2005 11:07 AM
Apache ProxyPass/VirtualHost question lil_drummaboy Linux - Networking 2 11-10-2004 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:54 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration