Jump to content

Question with Mod_Proxy and Apache2


CoolBox

Recommended Posts

Hi! this isn´t a tipical question about config proxy with apache2, i know and have allready config the proxy, but now i´m trying other config ( thinking that is best ) and not rulez.

 

Explained:

 

I have a domain http://www.MyDomain.com

alleady i have configured apache2:

    www.mydomain.com --> web in apache2 static

    one.mydomain.com ---> proxy to IIS Server in my intranet, http://iis.intranet.com

the config ... file in apache2/sites-available file name is "iis"

ok, some of code ( no paste complete file and names is not reals )

              NameVirtualHost *

              <VirtualHost *>

                    ServerAdmin blabla

                    ServerName one.mydomain.com

                    ServerAlias  one.mydomain.com

                   

                    ProxyRequest Off ( is a reverse proxy for iis )

                    <Proxy *>

                          Order deny,allow

                          Allow from all

                      </Proxy>

                      <Location />

                              ProxyPass    http://iis.intranet.com

                              ProxyPassReverse    http://iis.intranet.com

                      </Location>

 

This config is Ok, except some times when navigate on one.mydomain.com, apache show me

Proxy Error bla bla bla

when try GET /....

i dont know, one times fails, other times no fails... but Run, no problem ( if any know how fix this, thx ! )

 

Now, i think if need one subdomain for each Proxy page that i need configure, is alot...

then i wanna give this config:

 

      www.mydomain.com ---> static page

      www.mydomain.com/iis ---> proxy to IIS

I try this, in configuracion of www.mydomain.com...

      ProxyRequest Off

      <Location /test/iis>

            ProxyPass http://iis.intranet.com

            ProxyReversePass http://iis.intranet.com

        </Location>

 

this Ok but... when i request

www.mydomain.com/iis --> show first page ok but change url to ServerName --> www.mydomain.com/index of iis.intranet.com and positioning in a www.mydomain.com.

This is, with my configuration, no run because the URL when navigate along proxy subs /iis string

i was trying to rewrite request to get www.mydomain.com/test

But this no run.... i try 10000000 configurations and read apache2 doc and some forum in other languajes ( Im Spanish... sorry for my poor inglish )

 

Any Know how i can configure this?

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.