httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Semmens <lance.semm...@essential.com.au>
Subject RE: [users@httpd] Reverse proxy with password
Date Wed, 02 Mar 2005 23:21:58 GMT
Thanks Joshua, but I am now forbidden to access
http://localhost:8080/my_webapp
	"Forbidden
	You don't have permission to access /my_webapp on this server."

I have now tried creating a password using
	htpasswd -c /my_webapp admin 

And added 
	<Directory /my_webapp>
		AuthType Basic
		AuthName "Restricted Files"
		AuthUserFile /my_webapp
		Require user admin
	</Directory>

I still get the forbidden message.

-----Original Message-----
From: Joshua Slive [mailto:jslive@gmail.com]
Sent: Thursday, 3 March 2005 3:06 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Reverse proxy with password
Importance: Low


On Wed, 2 Mar 2005 16:12:26 +1030, Lance Semmens
<lance.semmens@essential.com.au> wrote:
> Hi, I'm new to apache httpd and I'm trying to configure a reverse proxy.
> I'm wanting to proxy requests to a webapp running on tomcat on the same
> machine as httpd
> I'd like httpd to request a username / password before proxying calls to
> tomcat.
> I've tried using a <VirtualHost> but the documentation is a bit too techy
> for me and I don't really understand what I should be specifying for
> DocumentRoot and ServerName.
> 
> Lets assume that
>         apache is running on http://localhost:8080
>         my webapp on tomcat is running on http://localhost:80/my_webapp
>         i'd like requests to http://localhost:8080/my_webapp to be proxied
> to http://localhost:80/my_webapp

You shouldn't really need a <VirtualHost> for this.  Just
ProxyPass /my_webapp http://localhost:80/my_webapp
ProxyPassReverse /my_webapp http://localhost:80/my_webapp

You will, of course, need to adjust Listen and ServerName to specifiy
the 8080 port.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message