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

two servers both on port 80

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Using a running process as handler  
Author Message
stj_spam

External


Since: Sep 29, 2004
Posts: 1



(Msg. 1) Posted: Wed Sep 29, 2004 2:50 pm
Post subject: two servers both on port 80
Archived from groups: alt>apache>configuration (more info?)

I'm trying to run Standard Apache 1.3.26 and Oracle's apache at the
same time. The standard apache should be on port 80, the Oracle
apache on another port...say 3333. I have a two dns entrys that point
to the same server. The first dns entry (lets call it DNS1.COM) I
want to be served by the Oracle Apache Server. The second dns entry
(DNS2.COM) should be served by the standard Apache server. I'm
trying to avoid having to use port #s in the URL for those request to
the Oracle apache server.


What should I do to my conf file on the Oracle Apache server to get it
to respond to request that come from DNS1.COM and no port #. Remember
it's listening on port 3333 but someone said I could do something with
the VirtualHost section of the conf file to make this work. So far, I
haven't had any luck.

Is this possible to do at all?

Thanks,
Scott

 >> Stay informed about: two servers both on port 80 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Wed Sep 29, 2004 6:06 pm
Post subject: Re: two servers both on port 80 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"sjohns" <stj_spam.RemoveThis@yahoo.com> wrote in message news:<1096483856.339583.227740.RemoveThis@k17g2000odb.googlegroups.com>...
 > I'm trying to run Standard Apache 1.3.26 and Oracle's apache at the
 > same time. The standard apache should be on port 80, the Oracle
 > apache on another port...say 3333. I have a two dns entrys that point
 > to the same server. The first dns entry (lets call it DNS1.COM) I
 > want to be served by the Oracle Apache Server. The second dns entry
 > (DNS2.COM) should be served by the standard Apache server. I'm
 > trying to avoid having to use port #s in the URL for those request to
 > the Oracle apache server.
 >
 >
 > What should I do to my conf file on the Oracle Apache server to get it
 > to respond to request that come from DNS1.COM and no port #. Remember
 > it's listening on port 3333 but someone said I could do something with
 > the VirtualHost section of the conf file to make this work. So far, I
 > haven't had any luck.

you need two name based virtual host on the port 80 instance like this

NameVirtualHost *:80
<VirtualHost *.80>
ServerName DNS2.COM
.... config for regular website ...
</VirtualHost>

<VirtualHost *.80>
ServerName DNS1.COM


</VirtualHost>

in the section for DNS1.COM you can either have a reverse proxy like
this (remeber to load mod_proxy):

ProxyPass / <a style='text-decoration: underline;' href="http://127.0.0.1:3333/" target="_blank">http://127.0.0.1:3333/</a>
ProxyPassReverse / <a style='text-decoration: underline;' href="http://127.0.0.1:3333/" target="_blank">http://127.0.0.1:3333/</a>

and set the ServerName for the oracle-apache to 127.0.0.1

or just generate a redirect to port 3333 like this:

RedirectMatch (.*) <a style='text-decoration: underline;' href="http://DNS1.COM:3333/$1" target="_blank">http://DNS1.COM:3333/$1</a>

here the oracle-apache needs to have ServerName DNS1.COM.

the reverse proxy way will generate a bit more load and might have
some unexpected pitfalls. but the redirect will mean that everybody
sees your oracle apache on port 3333 in the address bar.

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: two servers both on port 80 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 3) Posted: Wed Sep 29, 2004 10:06 pm
Post subject: Re: two servers both on port 80 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-09-29, sjohns <stj_spam RemoveThis @yahoo.com> wrote:
 > What should I do to my conf file on the Oracle Apache server to get it
 > to respond to request that come from DNS1.COM and no port #.

Use a VirtualHost in the 'normal' apache and mod_proxy to pass the
request to oracle's Apache on port 3333.

Davide

--
Windows NT encountered the following error: The operation completed
successfully.

-- From a Slashdot.org post<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: two servers both on port 80 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
two servers - Suppose i have 2 servers ServerFast is very fast but has limited disk space ServerSlow is quite a bit slower but has nearly unlimited storage My DNS points to ServerFast. I want to create a situation where, when a request comes into ServerFast for a...

Multiple Servers Or Just One? - Hi, I'm involved in developing an application that consists of two aspects: (1) Serving of static, compressed HTML pages and images with the logs being collected for further processing. (2) PHP-based application for management, which would runs with SSL...

Cannot get virtual servers working - I am running Apache 2.044 on Mandrake but cannot get it to point to my name-based virtual servers. I always wind-up back on my main-server regardless of which site I try to access. Is there some sort of override that is doing this? my config: ..

Question about folders and virtual servers... - Hi everyone. I'm a little new to apache, but I've had some good success so far. I'm using 1.3.27. I have some virtual servers set up that appear to work correctly. With one, I have a domain name forwarded to it, so it goes like this: www.bugs.net ..

commercial and private virtual servers - HY! <font color=purple> ; I have some commercial virtual servers and some private (picture</font> <font color=purple> ; collections), whichtake quite a lot of bandwith.. So I have to set up</font> <font color=pu...
   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 ]