[us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread ravindra
Hi Everybody,

 

I have added mod_ssl module to my apache 2.2 server then I typed
https://localhost on my browser it worked, it served the certificate I
installed.

But when I type http://localhost  it is still working (showing the
index.html content in htdocs) . I want my apache server to accept only
https requests.

 

How to configure this?

Thank you,

Ravindra.

 

 



Re: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread Davide Bianchi
ravindra wrote:
 But when I type “http://localhost “ it is still working (showing the
 index.html content in htdocs) . I want my apache server to accept only
 “https “requests.
 
 How to configure this?

You have two way: remove the 'Listen 80' option, basically disabling the
whole http part, or add a 'RedirectPermanent / https:...' to the default
http vhost to redirect all the http request to https.

Davide

-- 
I am a fully rounded human being, with a degree from the university of
life, a diploma from the school of hard knocks, and three gold stars
from the kindergarten of getting the shit kicked out of me.
- Edmund Blackadder

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread Lyle Wincentsen
Davide wrote:
You have two way: remove the 'Listen 80' option, basically disabling the
whole http part, or add a 'RedirectPermanent / https:...' to the default
http vhost to redirect all the http request to https.

You could also call the following php function at the top of each page
where you want to use SSL:

function redirect_to_https() {
if ($_SERVER['HTTPS']!=on) {
  $redirect =
https://.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'https://%22.$_server['http_host'].$_server['request_uri'/
];
  header(Location:$redirect);
   }
}
-Lyle


Re: [us...@httpd] how to do http PUT inside the output filter

2009-06-18 Thread Nick Kew


On 17 Jun 2009, at 18:52, Lyudmila L. Balakireva wrote:


Hello,
I am new to apache and c and


Then you're probably being over-ambitious :-)

One thing that immediately stands out: you're using the request pool,
but you defined your filter to run outside the protocol level, where the
request object (and hence its pool) is no longer valid.  The simple
fix would be to use the connection pool.  But that in turn highlights
the likelihood that you might want to revisit your architectural design.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] how to setup mod_ssl to accept only https requests

2009-06-18 Thread ravindra
Thanks guys your solutions worked.

 

  _  

From: Lyle Wincentsen [mailto:lyle.wincent...@gmail.com] 
Sent: Thursday, June 18, 2009 12:47 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] how to setup mod_ssl to accept only https
requests

 

Davide wrote:

You have two way: remove the 'Listen 80' option, basically disabling the
whole http part, or add a 'RedirectPermanent / https:...' to the default
http vhost to redirect all the http request to https.

You could also call the following php function at the top of each page where
you want to use SSL:

 

function redirect_to_https() {

if ($_SERVER['HTTPS']!=on) {
  $redirect = https://
https://%22.$_server%5b'http_host'%5d.$_server%5b'request_uri'/
.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
  header(Location:$redirect);
   }

}

-Lyle



Re: [us...@httpd] New DOS HTTP tool

2009-06-18 Thread Nick Kew


On 17 Jun 2009, at 21:59, Julien Pauli wrote:


Any suggestions, ideas ? ;)


OhBugger.  I meant to test-drive this before it went (fully) public.

If you want to be helpful with this, you might like to test-drive
how the following affect this:
  * Event MPM over others (and Worker over Prefork)
  * AcceptFilters
  * mod_evasive and bandwidth modules
on your choice of platform.

--
Nick Kew

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] mod_auth_pgsql and mod_auth_mysql on the same server

2009-06-18 Thread Marc Feist
Hi!
 
 Use mod_authn_dbd, which works obsoletes the modules mentioned
 in your subject line for authentication.

Thanks to Nick for pointing me to DBD. I googled 2 days for
mod_auth_mysql/mod_auth_pgsql with no clues at all.

Everything is working now!

Best,
Marc

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] What does this info means and how to fix?

2009-06-18 Thread Melanie Pfefer

Hi

I see this in the error logs:

[info] server seems busy, (you may need to increase StartServers, or 
Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 21 total 
children
[info] server seems busy, (you may need to increase StartServers, or 
Min/MaxSpareServers), spawning 16 children, there are 4 idle, and 29 total 
children

thank you,




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] What does this info means and how to fix?

2009-06-18 Thread André Warnier

Melanie Pfefer wrote:

Hi

I see this in the error logs:

[info] server seems busy, (you may need to increase StartServers, or 
Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 21 total 
children
[info] server seems busy, (you may need to increase StartServers, or 
Min/MaxSpareServers), spawning 16 children, there are 4 idle, and 29 total 
children

Can you say what it is in the above that you do not understand ?  As log 
messages go, this one sounds pretty clear to me, up to telling you what 
to change and how..



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] throgh https accesing struts2 application

2009-06-18 Thread ravindra
Hi all,

 

I have Struts2 application running in Tomcat6.0 and I am using Apache
Clustering and load balancing for that application. I am able to access all
my documents under apache htdocs through https. Somewhere in those documents
I have a link to my application like http://1.2.3.4:8080/app/login.action;.

  

How to access this application also in https?

Do I need to setup https in tomcat6.0 or Is there any configuration
procedure in Apache 2.2 webserver?

 

Thank you,

Ravindra

 



Re: [us...@httpd] throgh https accesing struts2 application

2009-06-18 Thread André Warnier

ravindra wrote:
In your description, it is not very clear
- if you use Apache httpd /and/ Apache Tomcat
- if yes, are these separate hosts, and if yes, are they at the same 
physical location ?

- how they are connected (mod_proxy, mod_proxy_ajp, mod_jk,..)
- which things you handle with httpd, which with Tomcat, and how you decide
Can you be a little more explicit ?

(Basically, you could send all the requests to Apache httpd via HTTPS, 
and from Apache httpd proxy to Tomcat via simple HTTP. That's why I'm 
asking)


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



RE: [us...@httpd] throgh https accesing struts2 application

2009-06-18 Thread ravindra
Thanks for the reply André,

Sorry for the insufficient information. At present apache httpd and
apache tomcat are running on the same machine. Under htdocs folder of apache
httpd we have our static (html) wesite content. Under apache tomcat6.0 we
have Struts2 application deployed.
I want all the request to Struts2 application to be https and come
through apache.For this I have installed mod_jk, mod_ssl.   

What other modules I need to add, could you please guide me? 
Thank you,
Ravindra

-Original Message-
From: André Warnier [mailto:a...@ice-sa.com] 
Sent: Thursday, June 18, 2009 4:12 PM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] throgh https accesing struts2 application

ravindra wrote:
In your description, it is not very clear
- if you use Apache httpd /and/ Apache Tomcat
- if yes, are these separate hosts, and if yes, are they at the same 
physical location ?
- how they are connected (mod_proxy, mod_proxy_ajp, mod_jk,..)
- which things you handle with httpd, which with Tomcat, and how you decide
Can you be a little more explicit ?

(Basically, you could send all the requests to Apache httpd via HTTPS, 
and from Apache httpd proxy to Tomcat via simple HTTP. That's why I'm 
asking)

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org





-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] trouble using environment variables in rewriterules

2009-06-18 Thread Jeremy Jones
Hi,
I'm trying to set an environment variable in httpd.conf and then have it
available to the URL-portion of a RewriteRule in a .htaccess file. Please
could someone assist:



In httpd.conf I have this line setting the environment variable:


SetEnv   MODPERLPORT  81




and in .htaccess I want to do something like this:



RewriteEngine On
RewriteRule foo\.cgi
 http://myserver:%{ENV:MODPERLPORT}%{REQUEST_URI}[P,L]


to have Apache proxy the request through to another Apache process running
on a different port, but it doesn't seem like any environment variables are
available in the URL portion of the rule.


I've also tried to do things like this:


RewriteEngine   On
RewriteCond %{ENV:MODPERLPORT}  ([0-9]+)
RewriteRule  foo\.cgi
http://myserver:%1%{REQUEST_URI}[P,L]


but the condition fails, even though the environment variable is set if I
look at a simple dump of the environment e.g. env.cgi through a browser.

So far the only hacky way I can get this to work is to set a built-in
variable to the value I need, e.g.:

httpd.conf:

ServerAdmin81

.htaccess

RewriteEngine On
RewriteRule foo\.cgi
http://myserver:%{SERVER_ADMIN}%{REQUEST_URI}   [P,L]


but that's clearly a very poor solution for many reasons, not least that I
need the modperlport to vary for different environments without the
.htaccess file having to change for each environment.


Can anyone advise if there's a better/correct way to set customised
environment variables and then de-reference them within the URL portion of a
rewrite rule?

Thanks.
Jeremy


[us...@httpd] How to tunnel tcp through apache 2.2 reverse proxy

2009-06-18 Thread Holger Weissboeck
Good day everyone,

i am in desperate need for your help with a problem tunneling a custom
tcp protocol through a chain of apache servers configured as proxies.

The necessary setup looks like this:
Client - [Apache 2.2 Reverse Proxy] - [Apache 2.2 Forward Proxy] -
Server
and unfortunately it can't be changed.

Client and Server a talking a custom protocol. To tunnel through the
proxies the Client sends a HTTP CONNECT request to the first proxy
(according to the INTERNET-DRAFT Tunneling TCP based protocols through
Web proxy servers by Ari Luotonen). The proxy is then supposed to
digest this HTTP CONNECT HEADER from the wire and create a tcp tunnel
between the Client and the Server. Client and Server then can talk their
custom protocol.

In the following setups this approach works flawlessly:
* Client - [Apache 2.2 Forward Proxy] - Server
* Client - [Apache 2.0 Forward Proxy] - Server
* Client - [Apache 2.0 Reverse Proxy] - Server

Unfortunately it does not work for Apache 2.2 reverse proxies:
* Client - [Apache 2.2 Reverse Proxy] - Server
* Client - [Apache 2.2 Reverse Proxy] - [Apache 2.2 Forward Proxy] -
Server

How do i have to configure the proxies so that the CONNECT request
actually creates a tunnel?

My current configurations are the following:

Reverse Proxy:
Listen 9006
NameVirtualHost *:9006
VirtualHost *:9006
 AllowCONNECT 9008
 ProxyPass / http://forwardproxyhost:9007
 ProxyRemote * http://forwardproxyhost:9007
/VirtualHost

Forward Proxy:
Listen 9007
NameVirtualHost *:9007
VirtualHost *:9007
 AllowCONNECT 9008
 ProxyRequests On
/VirtualHost

The HTTP CONNECT request header looks like this:
CONNECT serverhost:9008 HTTP/1.1
Host: serverhost:9008
User-agent: myCustomUserAgent
Connection: Keep-Alive

With the above setup the reverse proxy alters the request header and
sends the following to the forward proxy:
CONNECT http://serverhost:9008/ HTTP/1.1
Host: serverhost:9008
User-agent: myCustomUserAgent
Via: 1.1 reverseproxyhost:9008
X-Forwarded-For: serverhost
X-Forwarded-Host: serverhost:9008
X-Forwarded-Server: serverhost
Connection: Keep-Alive

...and then the chained forward proxy responds with the following:
HTTP/1.1 400 Bad Request
Date: Thu, 18 Jun 2009 11:42:02 GMT
Server: Apache/2.2.9 (Ubuntu)
Vary: Accept-Encoding
Content-Length: 303
Content-Type: text/html; charset=iso-8859-1
Via: 1.1 reverseproxyhost:9008
Connection: close

!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
htmlhead
title400 Bad Request/title
/headbody
h1Bad Request/h1
pYour browser sent a request that this server could not understand.br
/
/p
hr
addressApache/2.2.9 (Ubuntu) Server at forwardproxyhost Port
0/address
/body/html

The http:// part after the CONNECT keyword is new and was attached to
the request header by the reverse proxy. If i send this exact request
without the http://, it works. However, i have not found a way to make
Apache 2.2 do that for me. I have played with this for a while now using
different alterations of ProxyPass, ProxyPassReverse, ProxyRemote and so
on. None of those gave me the results i need.

Btw: Modules proxy, proxy_connect, proxy_http are enabled and proxy.conf
accepts all requests (Allow from all).

Thanks in advance!

Holger Weissboeck

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] trouble using environment variables in rewriterules

2009-06-18 Thread Jeremy Jones
Hi,

I'm trying to set an environment variable in httpd.conf and then have
it available to the URL-portion of a RewriteRule in a .htaccess file.
Please could someone assist:



In httpd.conf I have this line setting the environment variable:


SetEnv   MODPERLPORT  81




and in .htaccess I want to do something like this:



RewriteEngine On
RewriteRule foo\.cgi
http://myserver:%{ENV:MODPERLPORT}%{REQUEST_URI}[P,L]


to have Apache proxy the request through to another Apache process
running on a different port, but it doesn't seem like any environment
variables are available in the URL portion of the rule.


I've also tried to do things like this:


RewriteEngine   On
RewriteCond %{ENV:MODPERLPORT}  ([0-9]+)
RewriteRule  foo\.cgi
http://myserver:%1%{REQUEST_URI}[P,L]


but the condition fails, even though the environment variable is set
if I look at a simple dump of the environment e.g. env.cgi through a
browser.

So far the only hacky way I can get this to work is to set a built-in
variable to the value I need, e.g.:

httpd.conf:

ServerAdmin81

.htaccess

RewriteEngine On
RewriteRule foo\.cgi
http://myserver:%{SERVER_ADMIN}%{REQUEST_URI}   [P,L]


but that's clearly a very poor solution for many reasons, not least
that I need the modperlport to vary for different environments without
the .htaccess file having to change for each environment.


Can anyone advise if there's a better/correct way to set customised
environment variables and then de-reference them within the URL
portion of a rewrite rule?

Thanks.
Jeremy



www.jeremyjones.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] trouble using environment variables in rewriterules

2009-06-18 Thread Eric Covener
On Thu, Jun 18, 2009 at 7:51 AM, Jeremy Jonesjerema...@gmail.com wrote:
 Hi,
 I'm trying to set an environment variable in httpd.conf and then have it
 available to the URL-portion of a RewriteRule in a .htaccess file. Please
 could someone assist:


 In httpd.conf I have this line setting the environment variable:

 SetEnv       MODPERLPORT      81

SetEnv happens pretty late. SetEnvIf happens earlier.

If you want to read them with rewrite, use SetEnvIf.

-- 
Eric Covener
cove...@gmail.com

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] How to detect a non-graceful restart of Apache

2009-06-18 Thread SAILESH KRISHNAMURTI, BLOOMBERG/ 731 LEXIN
Hi, I have a requirement wherin application owners would like to be notified if 
apache is restarted non-gracefully, since there might be impact to user 
sessions etc... Is there any way to detect and report this, hopefully without 
compiling additional modules? thanks

[us...@httpd] ProxyBlock

2009-06-18 Thread David Vaughan
Hi there.

I have been experimenting with the ProxyBlock directive when running
Apache 2.2 as a forward proxy.

When Apache is the final proxy in a chain, everything works as expected.
However if I configure Apache to chain requests to another proxy (using
ProxyRemote * http://next_proxy.com:8080), then the ProxyBlock directive
ceases to operate correctly.  Under these circumstances ProxyBlock *
works as expected but all other forms appear to have no effect, although
observed DNS requests during Apache startup seem to indicate the
directive is recognised.  ProxyBlock is defined in the context of a
virtual host.

I have found a couple of posts that talk about the interaction of
ProxyRemote and ProxyBlock in relation to address resolution, but these
date back to Apache 2.0  2.1 (2005).  


Can anyone explain the observed behaviour?


Many thanks
Dave


-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] how to do http PUT inside the output filter

2009-06-18 Thread Lyudmila L. Balakireva



 On 17 Jun 2009, at 18:52, Lyudmila L. Balakireva wrote:

 Hello,
 I am new to apache and c and

 Then you're probably being over-ambitious :-)

 One thing that immediately stands out: you're using the request pool,
 but you defined your filter to run outside the protocol level, where the
 request object (and hence its pool) is no longer valid.  The simple
 fix would be to use the connection pool.  But that in turn highlights
 the likelihood that you might want to revisit your architectural design.

thank you for you reply,  though the fact that I am using request when it
is no longer  valid, already occurred to me yesterday, could you tell more
what you mean
But that in turn highlights the likelihood that you might want to revisit
your architectural design. ... ?
 Do I need to move to AP_FTYPE_RESOURCE filter  or you mean overall
approach is not valid (opening socket per request for example is  not
good)?

Thanks,
Luda



 --
 Nick Kew

 Application Development with Apache - the Apache Modules Book
 http://www.apachetutor.org/

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Unable to access http pages

2009-06-18 Thread Madhav Ancha
Hi,
   I started an apache server on a local machine(A) on linux. I can ping
this machine from another host(B) on the same network but I can't browse to
it using http://. I get the error saying IE cannot display this page.

I verified that the server is running on (A) by using
http://localhoston the local machine (A). Are there any more
permissions I should be setting
for machine B to be able to access the http server on A?

Thanks,
Madhav.


Re: [us...@httpd] Unable to access http pages

2009-06-18 Thread Evan Platt

At 12:08 PM 6/18/2009, you wrote:

Hi,

   I started an apache server on a local machine(A) on linux. I can 
ping this machine from another host(B) on the same network but I 
can't browse to it using http://. I get the error saying IE cannot 
display this page.


I verified that the server is running on (A) by using 
http://localhosthttp://localhost on the local machine (A). Are 
there any more permissions I should be setting for machine B to be 
able to access the http server on A?


Firewall?

on computer B:

telnet ip.address.of.a 80

What do you get? 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Unable to access http pages

2009-06-18 Thread Madhav Ancha
Machine B is a win box Evan. I did a putty -raw 10.1.10.110 80 and got
back nothing. The connection was probably closed at the kernel and putty
quit.

On Thu, Jun 18, 2009 at 2:11 PM, Evan Platt e...@espphotography.com wrote:

 At 12:08 PM 6/18/2009, you wrote:

 Hi,

   I started an apache server on a local machine(A) on linux. I can ping
 this machine from another host(B) on the same network but I can't browse to
 it using http://. I get the error saying IE cannot display this page.

I verified that the server is running on (A) by using 
 http://localhosthttp://localhost on the local machine (A). Are there any
 more permissions I should be setting for machine B to be able to access the
 http server on A?


 Firewall?

 on computer B:

 telnet ip.address.of.a 80

 What do you get?

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org




Re: [us...@httpd] how to do http PUT inside the output filter

2009-06-18 Thread Nick Kew
On Thu, 18 Jun 2009 11:13:00 -0600 (MDT)
Lyudmila L. Balakireva lu...@lanl.gov wrote:

 
 
 
  On 17 Jun 2009, at 18:52, Lyudmila L. Balakireva wrote:
 
  Hello,
  I am new to apache and c and
 
  Then you're probably being over-ambitious :-)
 
  One thing that immediately stands out: you're using the request
  pool, but you defined your filter to run outside the protocol
  level, where the request object (and hence its pool) is no longer
  valid.  The simple fix would be to use the connection pool.  But
  that in turn highlights the likelihood that you might want to
  revisit your architectural design.
 
 thank you for you reply,  though the fact that I am using request
 when it is no longer  valid, already occurred to me yesterday,

That's impressive for a self-professed newbie!  I take it you're
not new to programming, only to C?

could
 you tell more what you mean
 But that in turn highlights the likelihood that you might want to
 revisit your architectural design. ... ?
  Do I need to move to AP_FTYPE_RESOURCE filter  or you mean overall
 approach is not valid (opening socket per request for example is  not
 good)?

Maybe.  I'd need to know more about your problem, and spend
more think-time, to elaborate on that (don't tell me - I don't
have time to go into it).

What are you trying to capture?  If response headers, grab
them from the headers_out and err_headers_out tables.
If you want to catch data, bear in mind that things like
mod_deflate and mod_charset run at CONTENT_SET, so you may
want to run before that.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

-
The official User-To-User support forum of the Apache HTTP Server Project.
See URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Unable to access http pages

2009-06-18 Thread Madhav Ancha
I found the cause. Iptables was blocking the http requests on machine A.
Thanks for your help Evan.
-Madhav Ancha.

On Thu, Jun 18, 2009 at 2:34 PM, Madhav Ancha madhavan...@gmail.com wrote:

 Machine B is a win box Evan. I did a putty -raw 10.1.10.110 80 and got
 back nothing. The connection was probably closed at the kernel and putty
 quit.


 On Thu, Jun 18, 2009 at 2:11 PM, Evan Platt e...@espphotography.comwrote:

 At 12:08 PM 6/18/2009, you wrote:

 Hi,

   I started an apache server on a local machine(A) on linux. I can ping
 this machine from another host(B) on the same network but I can't browse to
 it using http://. I get the error saying IE cannot display this page.

I verified that the server is running on (A) by using 
 http://localhosthttp://localhost on the local machine (A). Are there
 any more permissions I should be setting for machine B to be able to access
 the http server on A?


 Firewall?

 on computer B:

 telnet ip.address.of.a 80

 What do you get?

 -
 The official User-To-User support forum of the Apache HTTP Server Project.
 See URL:http://httpd.apache.org/userslist.html for more info.
 To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
 from the digest: users-digest-unsubscr...@httpd.apache.org
 For additional commands, e-mail: users-h...@httpd.apache.org





Re: [us...@httpd] Apache 2.3 source?

2009-06-18 Thread Prasanna Ram Venkatachalam


 Is it possible to get a copy of the Apache 2.3 source? Looked around
 on the source distribution site and can't find anything.


Might help. This is an automated snapshot system. Not sure if it completely
works!! :(
http://httpd.apache.org/dev/
http://cvs.apache.org/snapshots/httpd/

Regards
Prasanna Ram