Proxy Virtual Hosts

Proxy Virtual Hosts

am 08.08.2003 17:41:55 von reffner

This is a cryptographically signed message in MIME format.

--------------ms080503080402080300020307
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I realize that this isn't a dev question but I though people on this
list might have a better chance of answering this question.

I've got an Apache 2.0 server and I'm trying to run two proxy servers on
port 80 and 8080 which auth off of an ldap box with different
permissions. Here's my config:

Listen 80
Listen 8080


ProxyRequests On


Order deny,allow
Deny from all
Allow from 10.5.0.0/16
Allow from 10.6.0.0/16
Allow from 10.253.0.0/16
AuthName "The University of Findlay Proxy Server"
AuthType Basic
LDAP_Server ldap.findlay.edu
LDAP_Port 389
Base_DN "dc=findlay,dc=edu"
UID_Attr uid
require group cn=DormUsers,ou=Groups



Order deny,allow
Deny from all
Allow from 10.2.0.0/16
AuthName "The University of Findlay Proxy Server"
AuthType Basic
LDAP_Server ldap.findlay.edu
LDAP_Port 389
Base_DN "dc=findlay,dc=edu"
UID_Attr uid
require group cn=DomainUsers,ou=Groups


#ProxyVia On


When I use this config it will proxy but not auth off my ldap server and
grant everyone proxy rights...a bad thing. The only time i can get it
to work is if I do a . Is there anyway I can proxy off of two
different ports? Thanks very much for your assistance.

TIA,
Jay

--------------ms080503080402080300020307
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEH AQAAoIIJTDCC
AwQwggJtoAMCAQICAwnLrTANBgkqhkiG9w0BAQQFADCBkjELMAkGA1UEBhMC WkExFTATBgNV
BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMQ8wDQYDVQQK EwZUaGF3dGUx
HTAbBgNVBAsTFENlcnRpZmljYXRlIFNlcnZpY2VzMSgwJgYDVQQDEx9QZXJz b25hbCBGcm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Tvoq
qf34qhtdz6FHWS08b1uzrTcURjKSHoBK7qVBy/5ck/SlCBY2V1ktt4v1kjb4 TNWucrN8aqr6
7VCsPMJiuk3KSeFERsCyAAAAAAAA
--------------ms080503080402080300020307--

Re: Proxy Virtual Hosts

am 08.08.2003 17:51:02 von Mike Collins

Jay,

Try using Virtualhosts


ServerName apacheapp1:8080
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/app1"
ProxyPass / http://localhost:8500/
ProxyPassReverse / http://localhost:8500/



ServerName apacheapp2:8080
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/app2"
.......


Thanks,
Mike