Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Send a request to another apache server

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


carnold at electrichendrix

Jul 16, 2008, 8:41 AM

Post #1 of 13 (366 views)
Permalink
Send a request to another apache server

Using apache2 2.2.3 on SLES10 SP2. What we have:

1 webserver on 123 subnet. Answers for port 80
1 email server with it's own small apache server on 124 subnet answers for port 8080
1 firewall/router with 1 IP (forwards to internal server addresses)

What we want to do:
When users enter some address in their browser, say webmail.domain.tld (which goes to server 1 on port 80) to goto the second server on 124 subnet on port 8080. Is there anyway to tell server 1 on port 80, when a specific url comes to it, send to second server on port 8080? Can this be done with the .htaccess file? Or can it be done at all? Thanks for any doc's/help

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


darvin.denmian at gmail

Jul 16, 2008, 10:17 AM

Post #2 of 13 (353 views)
Permalink
Re: Send a request to another apache server [In reply to]

Hi,

im from brasil, i will try to explain (with my good english) how you
can fix this problem:

you can use Redirect, something like this:

<VirtualHost webmail.domain.com:80>
ServerName domain.com
RedirectPermanent / https://destination.domain.com
</VirtualHost>

good luck.....


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<carnold[at]electrichendrix.com> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which goes to server 1 on port 80) to goto the second server on 124 subnet on port 8080. Is there anyway to tell server 1 on port 80, when a specific url comes to it, send to second server on port 8080? Can this be done with the .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


carnold at electrichendrix

Jul 16, 2008, 11:58 AM

Post #3 of 13 (343 views)
Permalink
Re: Send a request to another apache server [In reply to]

>Hi,
Hi

><VirtualHost webmail.domain.com:80>
> ServerName domain.com
> RedirectPermanent / https://destination.domain.com
></VirtualHost>
So, this is what i have in my vhost.conf file:
<VirtualHost webmail.some-domain.com:80>
ServerName some-domain.com
RedirectPermanent / http://otherdomain.com:8080
</VirtualHost>
Then i restart apache. Goto webmail.some-domain.com and i am taken to my webpage and it should take me to our web email. I have mod_alias loaded, according to phpinfo found at http://mytimewithgod.net/phpinfo.php.

I also have their website hosted on my server. Here is that section from vhost.conf:
<VirtualHost *:80>
ServerAdmin administrator[at]some-domain.com
ServerName some-domain.com
ServerAlias www.some-domain.com
DocumentRoot /path/to/web/site/some-domain

# if not specified, the global error log is used
ErrorLog /var/log/apache2/some-domain-error_log
CustomLog /var/log/apache2/some--access_log combined

# don't loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts
UseCanonicalName Off

# configures the footer on server-generated documents
ServerSignature On


#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/path/to/web/site/some-domain">
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

</VirtualHost>

These 2 sections are separate in the vhost.conf file. Thanks again for any help.


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<carnold[at]electrichendrix.com> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which goes to server 1 on port 80) to goto the second server on 124 subnet on port 8080. Is there anyway to tell server 1 on port 80, when a specific url comes to it, send to second server on port 8080? Can this be done with the .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


davide at onlyforfun

Jul 16, 2008, 11:22 PM

Post #4 of 13 (339 views)
Permalink
Re: Send a request to another apache server [In reply to]

Chris Arnold wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say
> webmail.domain.tld
(which goes to server 1 on port 80) to goto the second server on 124
subnet on port 8080. Is there anyway to tell server 1 on port 80, when a
specific url comes to it, send to second server on port 8080? Can this
be done with the .htaccess file? Or can it be done at all? Thanks for
any doc's/help

Yes, by using mod_proxy in combination with VirtualHosts, something like

<VirtualHost *:80>
ServerName webmail.domain.tld
ProxyPass / http://other.web.server.here:8080/
ProxyPassReverse / http://other.web.server.here:8080/
</VirtualHost>


See the documentation about mod_proxy

Davide

--
For their next act, they'll no doubt be buying a firewall running
under NT, which makes about as much sense as building a prison out
of meringue.
-- from alt.sysadmin.recovery

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


carnold at electrichendrix

Jul 18, 2008, 8:21 AM

Post #5 of 13 (330 views)
Permalink
Re: Send a request to another apache server [In reply to]

I have searched around and there are many helps on the internet but none seem to address my issue. They have a some-domain.tld site on the apache server (where i am making the changes to vhost.conf) and i want the requests that come to that apache server to (based on a dns address, webmail.some-domain.tld) to then be sent to different server which runs the webmail interface. What am i missing? This kinda seems to be a "port" redirect.....


So, this is what i have in my vhost.conf file:
<VirtualHost webmail.some-domain.com:80>
ServerName some-domain.com
RedirectPermanent / http://webmail.some-domain.com:8080
</VirtualHost>
Then i restart apache. Goto webmail.some-domain.com and i am taken to my webpage and it should take me to our web email. I have mod_alias loaded, according to phpinfo found at http://mytimewithgod.net/phpinfo.php.

I also have their website hosted on my server. Here is that section from vhost.conf:
<VirtualHost *:80>
ServerAdmin administrator[at]some-domain.com
ServerName some-domain.com
ServerAlias www.some-domain.com
DocumentRoot /path/to/web/site/some-domain

# if not specified, the global error log is used
ErrorLog /var/log/apache2/some-domain-error_log
CustomLog /var/log/apache2/some--access_log combined

# don't loose time with IP address lookups
HostnameLookups Off

# needed for named virtual hosts
UseCanonicalName Off

# configures the footer on server-generated documents
ServerSignature On


#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/path/to/web/site/some-domain">
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all

</Directory>

</VirtualHost>

These 2 sections are separate in the vhost.conf file. Thanks again for any help.


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<carnold[at]electrichendrix.com> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which goes to server 1 on port 80) to goto the second server on 124 subnet on port 8080. Is there anyway to tell server 1 on port 80, when a specific url comes to it, send to second server on port 8080? Can this be done with the .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


dragon at crimson-dragon

Jul 18, 2008, 8:40 AM

Post #6 of 13 (329 views)
Permalink
Re: Send a request to another apache server [In reply to]

Chris Arnold wrote:
>I have searched around and there are many helps on the internet but
>none seem to address my issue. They have a some-domain.tld site on
>the apache server (where i am making the changes to vhost.conf) and
>i want the requests that come to that apache server to (based on a
>dns address, webmail.some-domain.tld) to then be sent to different
>server which runs the webmail interface. What am i missing? This
>kinda seems to be a "port" redirect.....
---------------- End original message. ---------------------

Does the webmail application reside on a physically different machine
with a different IP address?

If so, the easiest (and best) way to do that is via proper DNS and
routing to the right machine for each application. Why would you want
to have Apache do what your router should be doing?


Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


dyioulos at firstbhph

Jul 18, 2008, 9:05 AM

Post #7 of 13 (329 views)
Permalink
Re: Send a request to another apache server [In reply to]

On Friday 18 July 2008 11:40 am, Dragon wrote:
> Chris Arnold wrote:
> >I have searched around and there are many helps on the internet but
> >none seem to address my issue. They have a some-domain.tld site on
> >the apache server (where i am making the changes to vhost.conf) and
> >i want the requests that come to that apache server to (based on a
> >dns address, webmail.some-domain.tld) to then be sent to different
> >server which runs the webmail interface. What am i missing? This
> >kinda seems to be a "port" redirect.....
>
> ---------------- End original message. ---------------------
>
> Does the webmail application reside on a physically different machine
> with a different IP address?
>
> If so, the easiest (and best) way to do that is via proper DNS and
> routing to the right machine for each application. Why would you want
> to have Apache do what your router should be doing?
>
>
> Dragon
>

Why not do a redirect? We have a webmail application as well, which lives on
a different server. I didn't want users to have to remember a new URL to
access it, so by using the Redirect directive in httpd.conf on our Web
server, users enter the URL http://www.ourwebsrvr.com/webmailprog, they're
redirected to the webmail server (and presented ssl-enabled page, to boot).

The directive looks like this, keeping in mind the URL that users enter into
their browsers (see above):

Redirect /webmailprog https://oursecondsrvr.ourdomain.com/proggy/proggy.pl

Of course, there's plenty of info out there on the Redirect directive.

Is that what you're after?

Dimitri


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


carnold at electrichendrix

Jul 18, 2008, 9:11 AM

Post #8 of 13 (332 views)
Permalink
Re: Send a request to another apache server [In reply to]

>Does the webmail application reside on a physically different machine
>with a different IP address?
Yes.

>?If so, the easiest (and best) way to do that is via proper DNS and
>routing to the right machine for each application. Why would you want
>to have Apache do what your router should be doing?
Unless i am missing something and i surely am not a routing guru, we have 1 ip address and the inside systems are NAT'ed. So, the first entry in the firewall policy points to the webserver (the webmail system does not run on this server); therefore, ALL port 80 request goto the first entry, which is the webserver. So, knowing this, i was trying to have the webserver redirect that request to another/different server with a different ip.



---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


dragon at crimson-dragon

Jul 18, 2008, 9:51 AM

Post #9 of 13 (327 views)
Permalink
Re: Send a request to another apache server [In reply to]

Chris Arnold wrote:
> >Does the webmail application reside on a physically different machine
> >with a different IP address?
>Yes.
>
> >?If so, the easiest (and best) way to do that is via proper DNS and
> >routing to the right machine for each application. Why would you want
> >to have Apache do what your router should be doing?
>Unless i am missing something and i surely am not a routing guru, we
>have 1 ip address and the inside systems are NAT'ed. So, the first
>entry in the firewall policy points to the webserver (the webmail
>system does not run on this server); therefore, ALL port 80 request
>goto the first entry, which is the webserver. So, knowing this, i
>was trying to have the webserver redirect that request to
>another/different server with a different ip.

OK, if I understand you correctly...

I see you having two options.

You can configure your router/fire wall to route the traffic to the
individual servers behind the fire wall, (if this is possible, it is
the BEST way to do it IMO). This means that port 80 traffic for
webmail.example.com should go to the web mail server and all other
port 80 traffic to the web server. Most routers intended for
business/professional use allow you to do just this sort of thing. If
you are using one intended for the consumer market, all bets are off
as to whether it supports such a configuration.

Your other option is that you can set up a reverse proxy to serve the
web mail, though this results in additional internal network traffic
as the requests and responses will be sent twice in both directions
(from router to proxy, from proxy to webmail and then back again).

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


carnold at electrichendrix

Jul 18, 2008, 10:05 AM

Post #10 of 13 (330 views)
Permalink
Re: Send a request to another apache server [In reply to]

>OK, if I understand you correctly...

>I see you having two options.

>You can configure your router/fire wall to route the traffic to the
>individual servers behind the fire wall, (if this is possible, it is
>the BEST way to do it IMO). This means that port 80 traffic for
>webmail.example.com should go to the web mail server and all other
>port 80 traffic to the web server. Most routers intended for
>business/professional use allow you to do just this sort of thing. If
>you are using one intended for the consumer market, all bets are off
>as to whether it supports such a configuration.
Our router/firewall does allow for this but as was stated in the other posts (look in the vhost.conf that i posted) webserver answers for port 80 and the webmail server answers for port 8080. So when users type in webmail.some-domain.tld, this goes to the webserver and not the webmail server (these users have trouble remembering to type :8080 at the end of the address which results in help desk calls). Just so you know, we use a Juniper/Netscreen router/firewall.




---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


carnold at electrichendrix

Jul 18, 2008, 10:21 AM

Post #11 of 13 (333 views)
Permalink
Re: Send a request to another apache server [In reply to]

>Why not do a redirect? We have a webmail application as well, which lives on
>a different server. I didn't want users to have to remember a new URL to
>access it, so by using the Redirect directive in httpd.conf on our Web
>server, users enter the URL http://www.ourwebsrvr.com/webmailprog, they're
>redirected to the webmail server (and presented ssl-enabled page, to boot).
This is what i have been trying to do all along through mod_alias :)

>The directive looks like this, keeping in mind the URL that users enter into
>their browsers (see above):
This is what the users enter into their browsers:
http://webmail.some-domain.tld

>Redirect /webmailprog https://oursecondsrvr.ourdomain.com/proggy/proggy.pl
This is what i have in my vhost.conf file:
<VirtualHost webmail.some-domain.com:80>
ServerName some-domain.com
RedirectPermanent / http://otherdomain.com:8080
</VirtualHost>
And as stated, this does not work. It takes you to the "root" site. So, where does your redirect go (in which file)? I am entering into the vhost.conf file.

OK, so what i did was use your Redirect /webmailprog http://oursecondsrvr.ourdomain.com:8080 under their web virtualhost and it now works. Notice i was trying to accomplish a different syntax of address: http://webmail.some-domain.tld to redirect to http://webmail.some-domain.tld:8080. This did not work.


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


dragon at crimson-dragon

Jul 18, 2008, 11:21 AM

Post #12 of 13 (331 views)
Permalink
Re: Send a request to another apache server [In reply to]

Chris Arnold wrote:
> >OK, if I understand you correctly...
>
> >I see you having two options.
>
> >You can configure your router/fire wall to route the traffic to the
> >individual servers behind the fire wall, (if this is possible, it is
> >the BEST way to do it IMO). This means that port 80 traffic for
> >webmail.example.com should go to the web mail server and all other
> >port 80 traffic to the web server. Most routers intended for
> >business/professional use allow you to do just this sort of thing. If
> >you are using one intended for the consumer market, all bets are off
> >as to whether it supports such a configuration.
>Our router/firewall does allow for this but as was stated in the
>other posts (look in the vhost.conf that i posted) webserver answers
>for port 80 and the webmail server answers for port 8080. So when
>users type in webmail.some-domain.tld, this goes to the webserver
>and not the webmail server (these users have trouble remembering to
>type :8080 at the end of the address which results in help desk
>calls). Just so you know, we use a Juniper/Netscreen router/firewall.
---------------- End original message. ---------------------

So why not have the web mail server responding to port 80 (as it should)?

Then you configure your router as I suggested. Problem solved and no
funky business with redirects or proxies.

Dragon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


solprovider at apache

Jul 18, 2008, 11:23 AM

Post #13 of 13 (331 views)
Permalink
Re: Send a request to another apache server [In reply to]

Hi Chris,

Restating the problem: You are firewalling the Internet by having one
Web server answer to port 80. You want some traffic to be passed from
your Web server to an application server (for webmail, but the
application is irrelevant.) This is a standard Web proxy.

First choose whether the URL is a virtual server or a path:
http://webmail.example.com/
http://www.example.com/webmail/
This is cosmetic for usability, but determines the configuration
settings needed.

Then configure Apache httpd to proxy those requests to the application server.
If using a distinct server name, use a Virtual Server.
If using a path, add the configuration to the main server's configuration.

I believe both can be handled with ProxyPass, but we do not use that.
One of our production systems uses Rewrites in the Virtual Server
configuration:
RewriteEngine On
RewriteRule ^/(.*)$ http://webmail.example.com:8080//$1 [P]
ProxyPassReverseCookieDomain webmail.example.com example.com
ProxyPassReverse / http://webmail.example.com:8080/
Note: We use the IP Address for the internal server rather than
"webmail.example.com".

If you use a path, the RewriteRule would need adjustment:
RewriteRule ^/webmail/(.*)$ http://webmail.example.com:8080//$1 [P]

HTH,
solprovider

P.S. "example.com", "example.net", and "example.org" were reserved for
examples so people do not create URLs to other domains when no real
domain is needed.

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.