Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-19 Thread TiredMan



Hassan Schroeder-2 wrote:
 
 On Tue, Dec 16, 2008 at 9:59 AM, TiredMan soulscaven...@gmail.com wrote:
 
 The page cannot be found message in IE when i go to
 http://webdomain.com
 
 You would be better off using Firefox with the Web Developer and
 Firebug plugins to get better error messages, but...
 
 As for httpd logs, i not sure they are configured, because i just have
 next
 files in logs dir:
 
 Should i enable it somehow?
 
 ? Logs appear to be enabled -- what do you find in them?
 
 And again, does your configuration check pass?
 
 -- 
 Hassan Schroeder  hassan.schroe...@gmail.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

Hassan, i just want to say THANK YOU a lot your invaluable help! I done with
it and my finish config for http so:
VirtualHost *:80
ProxyPreserveHost On
ProxyPass / http://localdomain.com:3001/
ProxyPassReverse / http://localdomain.com:3001/
ServerName webdomain.com
/VirtualHost *:80

IT JUST WORKS.

and another virt.host for reverse proxy with SSL:
VirtualHost *:443
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl/mycert.cert
SSLCertificateKeyFile conf/ssl/mykey.key
SSLProxyEngine On
ProxyPreserveHost On
ProxyPass / https://localdomain.com/
ProxyPassReverse / https://localdomain.com/
ServerName webdomain.com
/VirtualHost

Thank you a million and I wish you good luck in all your deeds. 
-- 
View this message in context: 
http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21088154.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread TiredMan

Hi. Kees de Kooter, are you sure it is possible with mod_proxy?
In this case if i will set at webdomain.com something like:
ProxyPass / http://localdomain.com
It will just redirect user, to http://localdomain.com which is not
accessible for him.
Or I am missing something?



Kees de Kooter wrote:
 
 You can use apache's mod_proxy module for this:
 http://httpd.apache.org/docs/2.0/mod/mod_proxy.html.
 
 Cheers,
 Kees de Kooter
 
 
 On Tue, Dec 16, 2008 at 12:26, TiredMan soulscaven...@gmail.com wrote:

 Hi. Gentlemen, I have a mission, but I have no idea how to do it.

 I have:
 1. A server with clear Tomcat 6.0.18  Apache 2.0.63 installed, with
 name,
 lets say, webdomain.com. The server is available from Internet by
 webdomain.com:80 and webdomain.com:443.
 2. Another server, localdomain.com, which is available ONLY for
 webdomain.com by local area network. This server has two
 webpages/application deployed. One at localdomain.com:3001, another at
 localdomain.com:443.

 Goal: configure webdomain.com so, that if user goes to webdomain.com:80
 he
 will see webpage/application  which is located at localdomain.com:3001,
 and
 same for webdomain.com:443 -- localdomain.com:3001

 Is it possible to configure so? Could you please show me how to do that?
 Maybe you know where i can read about it? I am completely newbe in
 apache/tomcat, so please don't be aggressive with respect to me :)
 --
 View this message in context:
 http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21031384.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21036040.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread TiredMan

Hi. Gentlemen, I have a mission, but I have no idea how to do it.

I have: 
1. A server with clear Tomcat 6.0.18  Apache 2.0.63 installed, with name,
lets say, webdomain.com. The server is available from Internet by
webdomain.com:80 and webdomain.com:443.
2. Another server, localdomain.com, which is available ONLY for
webdomain.com by local area network. This server has two
webpages/application deployed. One at localdomain.com:3001, another at
localdomain.com:443.

Goal: configure webdomain.com so, that if user goes to webdomain.com:80 he
will see webpage/application  which is located at localdomain.com:3001, and
same for webdomain.com:443 -- localdomain.com:3001

Is it possible to configure so? Could you please show me how to do that?
Maybe you know where i can read about it? I am completely newbe in
apache/tomcat, so please don't be aggressive with respect to me :)
-- 
View this message in context: 
http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21031384.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread TiredMan

Thank you for reply! Maybe you can also point me where I am wrong then?
I've added in httpd.conf at webdomain.com
 ProxyRequests Off

Proxy *
Order deny,allow
Allow from all
/Proxy

ProxyPass / http://localdomain.com
ProxyPassReverse / http://localdomain.com

And when I tried to access webdomain.com from a machine which has not acees
to localdomain.com directly - i did not successed.




Hassan Schroeder-2 wrote:
 
 On Tue, Dec 16, 2008 at 8:06 AM, TiredMan soulscaven...@gmail.com wrote:

 Hi. Kees de Kooter, are you sure it is possible with mod_proxy?
 In this case if i will set at webdomain.com something like:
 ProxyPass / http://localdomain.com
 It will just redirect user, to http://localdomain.com which is not
 accessible for him.
 Or I am missing something?
 
 Yes -- proxy does not mean redirect.
 
 
 -- 
 Hassan Schroeder  hassan.schroe...@gmail.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21037354.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Aid: Tomcat/Apache redirect (or forwarding).

2008-12-16 Thread TiredMan

Hi again.
The page cannot be found message in IE when i go to http://webdomain.com
As for httpd logs, i not sure they are configured, because i just have next
files in logs dir:
access.log
access_log
error.log
error_log
httpd.pid
install.log
ssl_request_log
Should i enable it somehow?

Yes, localdomain is resolvable by short and FQDN. Nope, there are no
iptables/wrappers at localdomain. I tried http://www.google.com as
localdomain for test and there was same picture.
By the way, when i trying to access webdoman.com from machine which ABLE to
see localdomain.com - all works perfect. Browsers shows me content of
localdomain.com and url is webdomain.com.

P.S Thank you a lot for you feedbacks Hassan. I really appreciate it.


Hassan Schroeder-2 wrote:
 
 On Tue, Dec 16, 2008 at 9:11 AM, TiredMan soulscaven...@gmail.com wrote:

 Thank you for reply! Maybe you can also point me where I am wrong then?
 
 And when I tried to access webdomain.com from a machine which has not
 acees
 to localdomain.com directly - i did not successed.
 
 WTF does that mean? You got a 404? 500 error? What do your httpd
 logs say?
 
 Does your configuration check pass?
 
 Is localdomain.com resolvable from the webdomain system? Are
 there any iptables rules or tcp wrappers on the localdomain.com
 system that would block access?
 
 -- 
 Hassan Schroeder  hassan.schroe...@gmail.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Aid%3A-Tomcat-Apache-redirect-%28or-forwarding%29.-tp21031384p21038314.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org