Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Forbidden access  
Author Message
lang

External


Since: Oct 29, 2003
Posts: 1



(Msg. 1) Posted: Wed Oct 29, 2003 9:46 am
Post subject: Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl
Archived from groups: alt>apache>configuration (more info?)

Hi all,

i´m using the standard rh9 apache config with ssl enabled, which works
fine. now i want to redirect an other domain via mod_proxy to an other
apache server without using ssl.

i´ve tried to setup a virtual host with this config:
....
NameVirtualHost <serverIP>

<VirtualHost <serverIP>:80>
# default virtual host which uses the standard apache server config
</VirtualHost>

<VirtualHost <serverIP>:80>
ServerAdmin root RemoveThis @localhost.localdomain
ServerName www.proxy-domain.de
ServerAlias proxy-domain.de
ProxyRequests On
<Directory proxy:*>
Order Allow,Deny
Allow From All
</Directory>
ProxyPass / http://<target-server>/
ProxyPassReverse / http://<target-server>/
</VirtualHost>
....

i´ve changed the virtualhost tag in ssl.conf to:
<VirtualHost <serverIP>:443>
</VirtualHost>

now my problem: apache doesn´t redirect the www.proxy-domain.de domain
anymore when ssl is enabled. when i access www.proxy-domain.de with a
browser i only see the content of the default server. no messages in
error_log or access_log.

i´ve read about the problems with namebased virtualhosts and ssl.

what i want to do is, to have the default server running on my local
domain with ssl and when there is a request for my www.proxy-domain.de
than apache should redirect this request to the target-server. can
this be done with mod_rewrite?

comments anyone? Smile

greetings, Markus Lang

 >> Stay informed about: Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Oct 29, 2003 5:53 pm
Post subject: Re: Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Markus Lang <lang.DeleteThis@repulse.de> wrote:
 > now my problem: apache doesn´t redirect the <a style='text-decoration: underline;' href="http://www.proxy-domain.de" target="_blank">www.proxy-domain.de</a> domain
 > anymore when ssl is enabled.

Probably because he espect you to talk https and not http, so the
second VHosts is basically ignored.

 > what i want to do is, to have the default server running on my local
<font color=purple> > domain with ssl and when there is a request for my <a style='text-decoration: underline;' href="http://www.proxy-domain.de</font" target="_blank">www.proxy-domain.de</font</a>>
 > than apache should redirect this request to the target-server.

It should work, but you have to handle HTTPS in the VHost and not http.
I don't have a working configuration for this at hand, but I did it to
separate mod_ssl from another third-party module that was crashing badly
when in the same server.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache 2.0.40 (RH9) virtual hosts vs. mod_proxy vs ssl 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
apache/tomcat virtual hosts - I have set up tomcat and apache... bind them with a JK2 connector both on port 80. I have 2 domains running on the machine. the apache docs are located on the following location: /export/home/webroot/site1 (www.site1.com) /export/home/webroot/site...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts on apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]