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 and Server 2003

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Setting up a second website on the same server  
Author Message
fake5

External


Since: Jan 16, 2004
Posts: 7



(Msg. 1) Posted: Sun Jun 20, 2004 2:03 pm
Post subject: Apache and Server 2003
Archived from groups: alt>apache>configuration (more info?)

I have a Server 2003 with public static IP address.

I need to have multiple applications listening to port 80 (apache, IIS and
one other program).

Is it possible to have http://apache.server.com:80 forwarded to apache,
http://iis.server.com:80 forwarded to IIS and http://other.server.com:80
forwarded to one other software (something like name based hosting) even
tough all of them are on the same Server2003 with one public static IP?


Many thanks for any answer.

 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Jun 20, 2004 2:03 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mikki <fake.DeleteThis@email.com> wrote:
 > I need to have multiple applications listening to port 80 (apache, IIS and
 > one other program).

One application only can listen to a specific port on a specific
interface, so you have IIS or Apache or something else but NOT
all of them. My suggestion is to run Apache on port 80, IIS on some
other port and the other application on some other port either, then
use mod_proxy to 'proxy' the requests to the other ports.

See the documentation about mod_proxy.

Davide

--
| Experience is what you get when you were expecting something else.
|
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
fake5

External


Since: Jan 16, 2004
Posts: 7



(Msg. 3) Posted: Sun Jun 20, 2004 3:16 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks. I think this will work.

How do I setup this in apache conf?

Try1:
-
ProxyPass /sharepoint http://127.0.0.1:81/
ProxyPassReverse /sharepoint http://127.0.0.1:81/
-
* Resulted in: I get 403 forbidden if I type http://server/sharepoint in
browser

Try2:
-
<Directory proxy:*>
Order Allow,Deny
Allow from all
</Directory>
ProxyPass /sharepoint http://127.0.0.1:81/
ProxyPassReverse /sharepoint http://127.0.0.1:81/
-
* Resulted in: apache won't start... configuration error

Try3:
-
<Files proxy:*>
Order Allow,Deny
Allow from all
</Files>
ProxyPass /sharepoint http://127.0.0.1:81/
ProxyPassReverse /sharepoint http://127.0.0.1:81/
-
* Resulted in: I get 403 forbidden if I type http://server/sharepoint in
browser

Thanks.
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Sun Jun 20, 2004 3:16 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mikki <fake DeleteThis @email.com> wrote:
<font color=purple> > ProxyPass /sharepoint <a style='text-decoration: underline;' href="http://127.0.0.1:81/</font" target="_blank">http://127.0.0.1:81/</font</a>>

You need /sharepoint/ <-- note the last '/'.

And I guess you want VirtualHosting to have them available from
outside in a simple way, something like:

NameVirtualHost *

<VirtualHost *>
  ServerName sharepoint.mydomain.here
  ProxyPass / http://.....:81/
  ProxyPassReverse / http://.....:81/
  ...other directives if you need them
</VirtualHost>

<VirtualHost *>
  ServerName apache.mydomain.here
  DocumentRoot ...wherever...
  <Directory "...wherisyourdocroot">
   Order allow,deny
   Allow from all
   Options....
  </Directory>
</VirtualHost>

<VirtualHost *>
  ServerName theotherapplication.mydomain.here
  ProxyPass / http://....:whatever/
  ProxyPassReverse / http://....:whatever/
</VirtualHost>

And, please, DO READ the documentation, I know, it's long and it's
boring, but there is almost everything that you need.

Davide

--
| Committees have become so important nowadays that subcommittees have
| to be appointed to do the work.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
fake5

External


Since: Jan 16, 2004
Posts: 7



(Msg. 5) Posted: Sun Jun 20, 2004 3:58 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I acctually forgot to load one module Smile. It works now, but I have another
problem.

Now apache, forwards http://server/iis/ to http://server:82/ (to IIS), but
the pages IIS serves have links such as http://server/Remote instead of
http://server/iis/Remote which causes a problem.

Is there a solution to this? Any advice?

10x
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 6) Posted: Sun Jun 20, 2004 4:45 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mikki <fake RemoveThis @email.com> wrote:
 > Now apache, forwards <a style='text-decoration: underline;' href="http://server/iis/" target="_blank">http://server/iis/</a> to <a style='text-decoration: underline;' href="http://server:82/" target="_blank">http://server:82/</a> (to IIS), but
 > the pages IIS serves have links such as <a style='text-decoration: underline;' href="http://server/Remote" target="_blank">http://server/Remote</a> instead of
 > <a style='text-decoration: underline;' href="http://server/iis/Remote" target="_blank">http://server/iis/Remote</a> which causes a problem.

This is why I told you about VHosts. If you have your Apache pretending
to be <a style='text-decoration: underline;' href="http://server" target="_blank">http://server</a> it will work without the /iis/ part. I'm doing that
for a dozen or so machines in my network.

Davide

--
| If only God would give me some clear sign! Like making a large
| deposit in my name at a Swiss bank.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 7) Posted: Sun Jun 20, 2004 5:54 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mikki" <fake.TakeThisOut@email.com> schreef in bericht
news:2jl902F116eadU1@uni-berlin.de...
 > I acctually forgot to load one module Smile. It works now, but I have another
 > problem.
 >
 > Now apache, forwards <a style='text-decoration: underline;' href="http://server/iis/" target="_blank">http://server/iis/</a> to <a style='text-decoration: underline;' href="http://server:82/" target="_blank">http://server:82/</a> (to IIS), but
 > the pages IIS serves have links such as <a style='text-decoration: underline;' href="http://server/Remote" target="_blank">http://server/Remote</a> instead of
 > <a style='text-decoration: underline;' href="http://server/iis/Remote" target="_blank">http://server/iis/Remote</a> which causes a problem.
Indeed a problem, using ProxyPass and ProxyPassReverse _only_ changes the
HTTP headers -cookies included-, not the links inside the response ...

 > Is there a solution to this?
.... try <a style='text-decoration: underline;' href="http://apache.webthing.com/mod_proxy_html/," target="_blank">http://apache.webthing.com/mod_proxy_html/,</a> however I've not seen a
binary for Windows yet.

 >Any advice?
Assuming dynamic content, if the 'http://server' part is configurable in
some way, you may try setting it empty... repeating protocol, server and
port is fairly redundant: a browser is to sent the next request to the same
server, at the same port, using the same protocol as the previous
request -unless specified otherwise-
If the 'Remote' part is configurable -perhaps only by (re)installing-,
change it to something meaningfull.
Then make IIS listen at 127.0.0.1:80 and arrange forwarding from
<a style='text-decoration: underline;' href="http://server/meaningfull" target="_blank">http://server/meaningfull</a> to <a style='text-decoration: underline;' href="http://localhost/meaningfull" target="_blank">http://localhost/meaningfull</a>

Good luck!

HansH


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18-6-2004<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
jlwpc1

External


Since: Jun 20, 2004
Posts: 1



(Msg. 8) Posted: Sun Jun 20, 2004 11:57 pm
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi"

  > > I have a Server 2003 with public static
  > > IP address.
  > >
  > > I need to have multiple applications
  > > listening to port 80 (apache, IIS and
  > > one other program).

 >
 > One application only can listen to a
 > specific port on a specific interface,

It seems that starting with Windows XP SP2
(which will be only a few hundreds of millions
of systems) all the newer Windows sytems
will contain a default on HTTP listener, HTTP
router, and HTTP responder, which is currently
in Windows Server 2003.

This HTTP listener is called HTTP.SYS.

HTTP.SYS is a kernel object (comes with
cache, SSL, and etc.) and it "controls" all
ports for HTTP usage.

Some say, that if nothing is registered with
HTTP.SYS and the port is open or a URI is
not valid for that open port, then HTTP.SYS
responds with a HTTP error message.

Others even say HTTP.SYS can have 100
processes active on the same port (time
will tell).

And yet even others say with the newer
..NET Framework class HttpListener (that
works with HTTP.SYS) a lot of HTTP and
web services activities will become easily
available (once again, time will tell).

 > so you have IIS or Apache or
 > something else but NOT
 > all of them.

So it seems with Windows one can
have them all, if one plays by the
Windows kernel HTTP.SYS rules
and or use the HTTP config tool.

May 2004 Windows SDK

<quote>

The HTTP application programming interface
(API) enables applications to communicate
over HTTP without using Microsoft Internet
Information Server (IIS). Applications can
register to receive HTTP requests for particular
URLs, receive HTTP requests, and send HTTP
responses. The HTTP API includes SSL support
so applications can exchange data over secure
HTTP connections without depending on IIS.
It is also designed to work with I/O completion ports.

</quote>

HTTP API
<a style='text-decoration: underline;' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netshell/netshell/netshell_start_page.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netsh.../netshe</a>

Jeff<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
chichot

External


Since: Jun 20, 2004
Posts: 1



(Msg. 9) Posted: Mon Jun 21, 2004 12:08 am
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try using squid (Windows port) with http acceleration mode

http://www.squid-cache.org/
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 10) Posted: Mon Jun 21, 2004 1:42 am
Post subject: Re: Apache and Server 2003 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Chichot" <chichot.TakeThisOut@BEZ-TEGOminister.com> schreef in bericht
news:cb4nh3$5tk$1@nemesis.news.tpi.pl...
 > Try using squid (Windows port) with http acceleration mode
<font color=purple> > <a style='text-decoration: underline;' href="http://www.squid-cache.org/</font" target="_blank">http://www.squid-cache.org/</font</a>>
Making a _caching_ reverse proxy too, jolly!

But how about rewritting the URL _inside_ the (x)(HT)ML pages???
These URLs start with the name of the cached server and needs to be changed
into the caching server.

HansH




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18-6-2004<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and Server 2003 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can I use Apache as a FTP server - Hi, I have to send very often files to my brother. I installed Apache together wit PHP en MySQL because I'm trying to understand how to work with this applications and therefore I need a localhost. But can I use Apache to enable my brother up- and..

Is www.apache.org server down? - I can't seem to reach it. Thanks.

Apache and IIS on the same server - Hi, Is it possible to install Apache on a server where IIS run ? Thanks

apache name server help - I have a registered domain name that points toward my server Ip address. This works fine my apache server displays the pages. Here is my problem. After you go to the home page, in the browser address field it shows my ip address instead of my domain..

apache with web logic server - i m not using tomcat. i want to use weblogic as an application server and apache as a web server, the simple is i wana create a bridge between apache and weblogic. So, if i use weblogic + apache, then how i will connect both of two servers, and what will...
   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 ]