LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-08-2009, 02:33 PM   #1
djbon2112
LQ Newbie
 
Registered: Sep 2008
Posts: 24

Rep: Reputation: 15
Quick Apache help needed with ProxyPass


OK, here's my setup in a nutshell (everything is https, i.e. port 443):

Virtual Host at admin.boniface.me
Internal address 10.100.0.1 proxied to admin.boniface.me/redir/r01edge

And here's my config for it:

Code:
##
## Admin site, for admin.boniface.me on port 443
##
<VirtualHost *:443>
	ServerName admin.boniface.me
	ServerPath /

	DocumentRoot /var/www/boniface.me/admin

	# Turn on SSL and SSL Proxy
	SSLEngine on
	SSLProxyEngine on
	SSLCertificateFile /etc/apache2/ssl/admin-boniface-me/admin-boniface-me.crt
	SSLCertificateKeyFile /etc/apache2/ssl/admin-boniface-me/admin-boniface-me.key

	# Disable forward proxy requests since this isn't a proxy server
	ProxyRequests Off
	<Proxy *>
		Order deny,allow
		Allow from all
	</Proxy>

	# Require the username/password
	<Directory />
		AllowOverride AuthConfig 
		AuthType Basic
		AuthName "Restricted Area"
		AuthUserFile /etc/apache2/passwd
		Require user administrator 
	</Directory>

	##
	## This is the list of ProxyPasses: each one is an internal URL that maps to a device on the local network
	##

	# R01-Edge.boniface.me (Web GUI)
	<Directory /redir/r01edge/>
	        
		ProxyPass https://10.100.0.1/
		ProxyPassReverse https://10.100.0.1/
	</Directory>	
</VirtualHost>
Now, my problem is, whenever I access the page at https://admin.boniface.me/redir/r01edge, all the links within the page are to https://admin.boniface.me/<pagename> INSTEAD of https://admin.boniface.me/redir/r01edge/<pagename>, which is needed.

I've tried using Alias and Redirect directives inside that Directory block to fix this, but I'm at a loss. Suggestions?
 
Old 12-10-2009, 12:25 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
I don't think you need to include the Proxy directives inside the <Directory ..></Directory>. Try:
Code:
...
# R01-Edge.boniface.me (Web GUI)
       		ProxyPass / https://10.100.0.1/
		ProxyPassReverse / https://10.100.0.1/
</VirtualHost>
and see if it works.

Last edited by bathory; 12-10-2009 at 12:51 AM.
 
  


Reply



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 Billy_bob_joe_ray Linux - Server 1 09-29-2009 11:17 AM
Apache Proxypass + SSL Port gabriellai Linux - Server 1 06-02-2009 09:49 AM
Apache ProxyPass doubt (ubuntu 6.10, apache 2.0) Carlos2dub Linux - Server 1 05-28-2008 03:43 AM
Apache - ProxyPass/Reverse wazh Linux - Server 2 02-18-2007 12:27 AM
Apache + Mod_proxy ProxyPass paul_mat Linux - Networking 2 04-14-2006 08:57 PM

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

All times are GMT -5. The time now is 04:26 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
Open Source Consulting | Domain Registration