You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Erica Zhang <er...@cs.ubc.ca> on 2007/02/27 02:55:08 UTC
Questions on configuring Apache Server
Hi,
I am developing some component, which need Apache to be able to listen
to two ports, instead of only one default port. I do not know if there
is some way to configure Apache http server to work in this way. I do
not want to configure it to be virtual host.
Thanks,
Erica
Re: Questions on configuring Apache Server
Posted by Issac Goldstand <ma...@beamartyr.net>.
It sounds like you want to write a pair of filters. There are several
examples of writing them in C, and a more detailed tutorial with
background at the mod_perl website
http://perl.apache.org/docs/2.0/user/handlers/filters.html
Erica Zhang wrote:
> Hi,
> Thanks.
>
> Well, my idea is want to analyze all requests from client before they
> arrives to the user applications and also analyze all responsed html
> after they are created by server applications and before they are
> arrived at client.
>
> To solve this problem, originally, I want to set up two ports. One port
> for the user applications and the other is for my tool. My tool will
> communicate with the user applications through Apache HTTP Server.
> However, now, I do not think it is a good idea.
>
> Now I am considering to develop a simple tool to solve this problem like
> Apache HTTP Server to catch the request and response. But I am not still
> sure about if this is a good idea, because I am not familiar with web
> application development .
>
> What is your idea ?
>
> Thanks,
>
> Erica
>
> Joshua Slive wrote:
>
>> On 2/26/07, Erica Zhang <er...@cs.ubc.ca> wrote:
>>
>>> Hi,
>>>
>>> I am developing some component, which need Apache to be able to listen
>>> to two ports, instead of only one default port. I do not know if there
>>> is some way to configure Apache http server to work in this way. I do
>>> not want to configure it to be virtual host.
>>
>>
>> Listen 80
>> Listen 81
>> in httpd.conf should do the trick.
>>
>> Or if not, you need to better specify what you are trying to do.
>>
>> Joshua.
>
Re: Questions on configuring Apache Server
Posted by Issac Goldstand <ma...@beamartyr.net>.
It sounds like you want to write a pair of filters. There are several
examples of writing them in C, and a more detailed tutorial with
background at the mod_perl website
http://perl.apache.org/docs/2.0/user/handlers/filters.html
Issac
Erica Zhang wrote:
> Hi,
> Thanks.
>
> Well, my idea is want to analyze all requests from client before they
> arrives to the user applications and also analyze all responsed html
> after they are created by server applications and before they are
> arrived at client.
>
> To solve this problem, originally, I want to set up two ports. One port
> for the user applications and the other is for my tool. My tool will
> communicate with the user applications through Apache HTTP Server.
> However, now, I do not think it is a good idea.
>
> Now I am considering to develop a simple tool to solve this problem like
> Apache HTTP Server to catch the request and response. But I am not still
> sure about if this is a good idea, because I am not familiar with web
> application development .
>
> What is your idea ?
>
> Thanks,
>
> Erica
>
> Joshua Slive wrote:
>
>> On 2/26/07, Erica Zhang <er...@cs.ubc.ca> wrote:
>>
>>> Hi,
>>>
>>> I am developing some component, which need Apache to be able to listen
>>> to two ports, instead of only one default port. I do not know if there
>>> is some way to configure Apache http server to work in this way. I do
>>> not want to configure it to be virtual host.
>>
>>
>> Listen 80
>> Listen 81
>> in httpd.conf should do the trick.
>>
>> Or if not, you need to better specify what you are trying to do.
>>
>> Joshua.
>
Re: Questions on configuring Apache Server
Posted by Plüm,
Rüdiger,
VF EITO <ru...@vodafone.com>.
Maybe modsecurity (http://www.modsecurity.org/) already does what you need.
Otherwise it gives you an impression how to write an appropriate module to do so.
Looking at http://apache.webthing.com/ for mod_accessibility and for mod_proxy_html
also seems to be good idea to either find out that what you need is already there
or to get an idea how to do it yourself.
Regards
Rüdiger
> -----Ursprüngliche Nachricht-----
> Von: Erica Zhang [mailto:ericazhj@cs.ubc.ca]
> Gesendet: Dienstag, 27. Februar 2007 17:50
> An: dev@httpd.apache.org
> Betreff: Re: Questions on configuring Apache Server
>
>
> Hi,
> Thanks.
>
> Well, my idea is want to analyze all requests from client before they
> arrives to the user applications and also analyze all responsed html
> after they are created by server applications and before they are
> arrived at client.
>
> To solve this problem, originally, I want to set up two
> ports. One port
> for the user applications and the other is for my tool. My tool will
> communicate with the user applications through Apache HTTP Server.
> However, now, I do not think it is a good idea.
>
> Now I am considering to develop a simple tool to solve this
> problem like
> Apache HTTP Server to catch the request and response. But I
> am not still
> sure about if this is a good idea, because I am not familiar with web
> application development .
>
> What is your idea ?
>
> Thanks,
>
> Erica
>
> Joshua Slive wrote:
>
> > On 2/26/07, Erica Zhang <er...@cs.ubc.ca> wrote:
> >
> >> Hi,
> >>
> >> I am developing some component, which need Apache to be
> able to listen
> >> to two ports, instead of only one default port. I do not
> know if there
> >> is some way to configure Apache http server to work in
> this way. I do
> >> not want to configure it to be virtual host.
> >
> >
> > Listen 80
> > Listen 81
> > in httpd.conf should do the trick.
> >
> > Or if not, you need to better specify what you are trying to do.
> >
> > Joshua.
>
>
>
Re: Questions on configuring Apache Server
Posted by Erica Zhang <er...@cs.ubc.ca>.
Hi,
Thanks.
Well, my idea is want to analyze all requests from client before they
arrives to the user applications and also analyze all responsed html
after they are created by server applications and before they are
arrived at client.
To solve this problem, originally, I want to set up two ports. One port
for the user applications and the other is for my tool. My tool will
communicate with the user applications through Apache HTTP Server.
However, now, I do not think it is a good idea.
Now I am considering to develop a simple tool to solve this problem like
Apache HTTP Server to catch the request and response. But I am not still
sure about if this is a good idea, because I am not familiar with web
application development .
What is your idea ?
Thanks,
Erica
Joshua Slive wrote:
> On 2/26/07, Erica Zhang <er...@cs.ubc.ca> wrote:
>
>> Hi,
>>
>> I am developing some component, which need Apache to be able to listen
>> to two ports, instead of only one default port. I do not know if there
>> is some way to configure Apache http server to work in this way. I do
>> not want to configure it to be virtual host.
>
>
> Listen 80
> Listen 81
> in httpd.conf should do the trick.
>
> Or if not, you need to better specify what you are trying to do.
>
> Joshua.
Re: Questions on configuring Apache Server
Posted by Joshua Slive <jo...@slive.ca>.
On 2/26/07, Erica Zhang <er...@cs.ubc.ca> wrote:
> Hi,
>
> I am developing some component, which need Apache to be able to listen
> to two ports, instead of only one default port. I do not know if there
> is some way to configure Apache http server to work in this way. I do
> not want to configure it to be virtual host.
Listen 80
Listen 81
in httpd.conf should do the trick.
Or if not, you need to better specify what you are trying to do.
Joshua.