[EMAIL PROTECTED] can't get virtual host working

2007-03-15 Thread bbxrider

i am running apache 2.2.4 on winxp pro, the apache machine is on my lan
behind a router and nothing else
please see my directives for my .conf file below, at least the ones that
seem to pertain to virtual host. 
when a browser is addressed to either domain, the default page from htdocs
is returned, not the domain page, try it! 
you will see my dir structure in the virtual host directives. 
also below is the output from httpd -S which looks ok to me, ok to a first
apache install newbie
i've tried many variations on the ip addr instead of *, like the local lan
addr, 127.0.0.1, etc
any ideas to try from here??

VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
default server www.mywarmbeach.com (C:/apache2/conf/httpd.conf:228)
port 80 namevhost www.mywarmbeach.com (C:/apache2/conf/httpd.conf:228)
port 80 namevhost www.job1data.com (C:/apache2/conf/httpd.conf:237)
Syntax OK

ServerRoot "C:/apache2"
Listen 80
DocumentRoot "C:/apache2/htdocs"

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

NameVirtualHost  *:80

ServerAdmin [EMAIL PROTECTED]
DocumentRoot C:/apache2/htdocs/mywarmbeach
DirectoryIndex index.html index.htm
ServerName www.mywarmbeach.com
ServerAlias mywarmbeach.com *.mywarmbeach.com
ErrorLog C:/apache2/log/www.mywarmbeach-error_log
 #  CustomLog C:/apache2/log/www.mywarmbeach-access_log


ServerAdmin [EMAIL PROTECTED]
DocumentRoot C:/apache2/htdocs/job1data
DirectoryIndex index.html index.htm
ServerName www.job1data.com
ServerAlias job1data.com *.job1data.com
ErrorLog C:/apache2/log/www.job1data-error_log
 #  CustomLog C:/apache2/log/www.mywarmbeach-access_log



-- 
View this message in context: 
http://www.nabble.com/can%27t-get-virtual-host-working-tf3406865.html#a9490024
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] making script parameters look like folders

2007-03-15 Thread Nick Kew
On Wed, 14 Mar 2007 23:27:05 -0400
"Sam Carleton" <[EMAIL PROTECTED]> wrote:


> My final objective is this:  I am serving up images that the server is
> creating dynamically, but I want a reverse proxy to THINK they are
> static images.  I figure if I take this approach the proxy will assume
> it is static, not dynamic.

Proxies don't think, and if your proxy is HTTP-compliant, you're looking
in the wrong place.  What matters isn't the URL and its parameters,
but the HTTP headers that describe the contents returned by your server.
(And, of course, those sent by a client, but that's out of your
control).


-- 
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 http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] no listing of protected directory

2007-03-15 Thread Laetitia Bourasseau

Hello

I try to list the content of a VirtualHost (with the directive Options
Indexes) on apache 2.0.52 (on centos 4) but only some subdirectories
appear.

All the subdirectories that have a  directive inside the
 in httpd.conf are not listed.
Some have a  section to enable a basic authentification on
those folders.
So only the files which are not protected do appear on
the listing and I want ALL the files and folders on the listing !

The behaviour was not the same on apache 1.3.27 : all the directories 
were listed.

A lot of users (on google...) seem to have the same problem, but i have not
found a valuable solution.

Is it a bug or a new feature in v 2.0.52 ?

thanks for your answer.

Laetitia

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] LDAP authentication against AD

2007-03-15 Thread Dave Hartburn
Hi,

Can anyone advise on a problem I have authenticating Apache on Linux
against an
Active Directory server? I can not authenticate for all users in the domain,
only users in specific branches.

I've found a few resources on line that suggest the following config is
correct:
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so


  AuthLDAPURL ldap://gciad01/OU=Bldg800,DC=Galleon,DC=local?sAMAccountName
  AuthLDAPBindDN CN=Support,CN=Users,DC=Galleon,DC=local
  AuthLDAPBindPassword password_removed
  AuthType Basic
  AuthName "Helpdesk"
  require valid-user


The good news is this works for all users in the organisation unit Bldg800,
which is one of the branches under the top level domain Galleon.local.
Users are
burried down a subtree, so it can search through an number of levels of
structure.

My active directory has a number of branches under the top level domain,
another
one being a container 'Users'. As I would expect, you can not login as a
user in
'Users', as it is not part of the Bldg800 OU.

If I change the URL to:
  AuthLDAPURL ldap://gciad01/CN=Users,DC=Galleon,DC=local?sAMAccountName
then people in 'Users' can login, users in Bldg800 can not. Again as I
would expect.

I thought the next logical step was to set the URL a level higher:
  AuthLDAPURL ldap://gciad01/DC=Galleon,DC=local?sAMAccountName
However, with this set, nobody can login. The apache error log reports:
[Wed Mar 14 17:12:47 2007] [warn] [client 192.168.19.31] [5559] auth_ldap
authenticate: user support authentication failed; URI
/helpdesk/phpinfo.php [ldap_search_ext_s() for user failed][Invalid DN
syntax]

Does anyone know what this error means? It suggests it can not search down
the
whole subtree, is this the case?

Or, is there a general trick to tell LDAP to check all sub-branches of the
tree
under the top level directory, something like Galleon.local.*. If not, is it
possible to specify more than one URL?

Any help appreciated.

Dave



-- 


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] ProxyReverse perverse behavior

2007-03-15 Thread Sylvain Bolay
Hi,

you may be interested in 
http://mail-archives.apache.org/mod_mbox/httpd-users/200610.mbox/[EMAIL 
PROTECTED]

Regards

On Wednesday 14 March 2007 18:02, Hugh Williams wrote:
> Hi;
>
> I am using Apache's ProxyPass/ProxyPassReverse features to deliver
> content that actually resides on an IIS server, but now "looks like" it
> comes directly from the Apache server.  However, I am getting
> non-uniform behavior. (Apache 1.3.33 on HP-UX 11.11)
>
> In httpd.conf:
>
> ProxyPass/org/sa_of_eng
> http://empyrean.soco.agilent.com/org/sa_of_eng ProxyPassReverse
> /org/sa_of_eng http://empyrean.soco.agilent.com/org/sa_of_eng
>
> ProxyPass/org/zorro http://empyrean.soco.agilent.com/org/zorro
> ProxyPassReverse /org/zorro http://empyrean.soco.agilent.com/org/zorro
>
> Here's the problem:
>
> Enter in Address BarResult Displayed in Address Bar
> -- 
>  http://www.soco.agilent.com/org/zorro/
>  http://www.soco.agilent.com/org/zorro/
> http://www.soco.agilent.com/org/zorro  
> http://www.soco.agilent.com/org/zorro/
> http://www.soco.agilent.com/org/sa_of_eng/ 
> http://www.soco.agilent.com/org/sa_of_eng/
> http://www.soco.agilent.com/org/sa_of_eng  
> http://empyrean.soco.agilent.com/org/sa%5Fof%5Feng/
>
> I haven't done a thorough test, but it appears that the reverse proxy
> translation in combination with "adding the trailing slash" does not
> like finding underscores in the URL.  I have at least one other URL with
> '_' in it exhibiting the same behavior; all the rest of my proxied sites
> have only letters in their names.
>
> Does anyone know if this can be fixed?  Am I not going to be able to
> allow my customers to omit the tralinig slash, or not be able to allow
> my content owners to use underscores in their web names?
>
> Thanks,
>
> hugh
>
> --
>  Hugh Williams  "There are two things to aim for in life;
>  [EMAIL PROTECTED]   first, to get what you want; and after
> that, Agilent Technologiesto enjoy it.  Only the wisest of
> mankind Santa Rosa 2US-Cachieve the second."
>  707.577.4941 - Logan Pearsall Smith, 1931
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> --

Sylvain Bolay
Institut de Recherche en Ophtalmologie
Av. Grand-Champsec 64
Case Postale 4168
1950 Sion 4
Tel. Direct: +41(0)27 2057 907
Tel. Réception: +41(0)27 2057 900
Fax. Réception: +41(0)27 2057 901  
e-mail: [EMAIL PROTECTED]
http://www.irovision.ch

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] making script parameters look like folders

2007-03-15 Thread Sam Carleton

Nick,

Thank you for the reply.  Please allow me to give you a bit more info
about what exactly I am doing:

I am writing a kiosk software package that has a GUI app as the front
end for the operator to use and apache is serving up the pages to the
web browser clients.  The main things being served up right now are
images.  The images coming into the GUI app are full size images, 4
mega pixel on up.

Presently what happens is that after the images are copied to the
computer (the GUI), the GUI creates the two different web images, one
is a small thumbnail (120x180) the other is a larger image for the
screen (400x600).  When the operator is ingesting 200 to 500 images at
one time, it takes a while, too long in my opinion.  So I am looking
for other ways of doing things...

At the present time, because I have control of the whole machine,
apache does not have direct access to the web images.  The images are
all accessed through a handler that finds the correct web image based
on a set of parameters.

My whole though was to change this handler code to go to the original
image, down size it and send it to the browser.  I know that it is
possible to simply check for a thumbnail first, service that up if
present and if not save the generated thumbnail for the next request.
Of course the problem with this comes from the race condition,
primarily of when one request/instance of the script is saving the
thumbnail and another one is reading the file before the first is done
writing it.  There are solutions to this, but no matter which way you
cut it, there are race conditions that are never pretty to resolve,
so...

Thus I started thinking that I could leverage a HTTP reverse proxy to
cache the generated images for me.  The question I have now is:  What
do I need to do so that a proxy will see the images as static rather
than dynamic?

There are a couple more issues too.  The operator has the power to go
in and delete images, so index pages should not been seen as dynamic.
The operator is also able to go in and modify images, such as change
their orientation or crop them.  Is there any way to take this into
account so that things are updated correctly?

On 3/15/07, Nick Kew <[EMAIL PROTECTED]> wrote:

On Wed, 14 Mar 2007 23:27:05 -0400
"Sam Carleton" <[EMAIL PROTECTED]> wrote:

> My final objective is this:  I am serving up images that the server is
> creating dynamically, but I want a reverse proxy to THINK they are
> static images.  I figure if I take this approach the proxy will assume
> it is static, not dynamic.

Proxies don't think, and if your proxy is HTTP-compliant, you're looking
in the wrong place.  What matters isn't the URL and its parameters,
but the HTTP headers that describe the contents returned by your server.
(And, of course, those sent by a client, but that's out of your
control).


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problem loading Ver 2.2.4 with MS Vista

2007-03-15 Thread MJ & Bob Ampula

Yes, I was installing as Administrator.

- Original Message - 
From: "William A. Rowe, Jr." <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 15, 2007 2:11 AM
Subject: Re: [EMAIL PROTECTED] Problem loading Ver 2.2.4 with MS Vista



MJ & Bob Ampula wrote:

Attempting to set up a local test server on our new laptop running
Windows Vista.


There's next to no research yet on how the security context changes
in the many variations of Vista affect the installer.

http://www.apache.org/dist/httpd/binaries/win32/TROUBLESHOOTING.html

has some hints to provide us more details of what happens during
installation.

One specific question - were you installing as Administrator?

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Memory problems from browser point of view

2007-03-15 Thread Joshua Slive

On 3/15/07, jekillen <[EMAIL PROTECTED]> wrote:

Hello;
I have not had experience with this in the past
but I am doing a large project in php and I
need to know what Apache sends the browser
when it is having memory problems.


If you have MaxClients tuned correctly (that is, low enough that
apache processes never wind up in swap space), then when you are low
on memory apache will hit MaxClients and further clients will simply
not be able to connect until a process is available to serve them.

If MaxClients is not tuned correctly, then apache will start trying to
use swap space and responses will become slower and slower until the
server essentially looks dead.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] no listing of protected directory

2007-03-15 Thread Joshua Slive

On 3/15/07, Laetitia Bourasseau <[EMAIL PROTECTED]> wrote:

Hello

I try to list the content of a VirtualHost (with the directive Options
Indexes) on apache 2.0.52 (on centos 4) but only some subdirectories
appear.

All the subdirectories that have a  directive inside the
 in httpd.conf are not listed.
Some have a  section to enable a basic authentification on
those folders.
So only the files which are not protected do appear on
the listing and I want ALL the files and folders on the listing !

The behaviour was not the same on apache 1.3.27 : all the directories
were listed.
A lot of users (on google...) seem to have the same problem, but i have not
found a valuable solution.

Is it a bug or a new feature in v 2.0.52 ?


Hmmm... My hint on the bug database wasn't enough?

It is a security feature designed to prevent the disclosure of
protected resources.

It can be turned off in recent versions (2.0.52 probably doesn't
count) using the IndexOptions directive: specifically the
ShowForbidden option.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] clearing mod_ldap cache

2007-03-15 Thread Peter Münster
Hello,

is there a possibility to clear the LDAP-cache in mod_ldap of a running
apache server? The best would be from inside PHP.

Greetings, Peter

-- 
http://pmrb.free.fr/contact-DD/


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache mod_jk <-> Tomcat AJP connectors question

2007-03-15 Thread Eric Tchepannou

Hi,

We use apache, mod_jk and tomcat/jboss. I am currently investigating a
recurrent error message spotted in our jboss/tomcat logs:

WARN  [ChannelSocket] processCallbacks status 2

I have received a suggestion to set the worker's MaxRequestsPerChild to 0
(currently set to 1), but before implementing this change I would like
to go to the bottom of this problem.

I understand apache requests will be forwarded to tomcat/jboss via the AJP
connectors and the response will be sent back through the same channel. I
suspect that apache disposes the child processes even before the response
arrives from the application server, causing this error message at that .
Based on the assumption that previous statement is correct, does apache have
a compensation mechanism to recognise when responses are not complete and
initiate a retry?

Many thanks in advance for your help.

--
Best Regards,
Eric Tchepannou


[EMAIL PROTECTED] Having a problem following symlinks

2007-03-15 Thread Rob Tanner
Hi,

I want to implement Cacti, a PHP based network monitoring/graphing
tool.  I'm running on Fedora Core 6 and using the Cacti build from the
FC6 repository and Apache version httpd-2.2.3-5 also from the FC6
repository.

The /var/www/html and in the directory I have a sym link to
/usr/share/cacti which is where the PHP file, etc, are located.  When I
try  to access Cacti from my browser, I get the following error:

[Thu Mar 15 09:56:46 2007] [error] [client 10.219.255.250] client denied
by server configuration: /usr/share/cacti

This is what I believe to be the pertinent section of the httpd.conf. 
This is simply the default file that comes with the distro with mo
modifications (other than adding a LoadModule for PHP.

DocumentRoot "/var/www/html"


Options FollowSymLinks
AllowOverride None



Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all


As far as I know, the above indicates that everything should be working,
but it's not and I'm at a loss to figure out where to look.

Any help would be appreciated.

Thanks,
Rob

-- 
Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR



smime.p7s
Description: S/MIME Cryptographic Signature


[EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Gareth Howlett
Hi,

I'm new to the list but a long time user of apache - great piece of
software.  I've never needed this list before but I seem to have run
into a rather odd problem I can't solve.

I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
boxes.  I moved IIS over to port 8080 and installed apache on port 80.
The installation went off without a hitch - the install log has no
errors at all.  The first thing I did was cranked the log level up to
debug and restart the server.  The error log now contains the following:

[Thu Mar 15 12:56:49 2007] [notice] Parent: Received restart signal --
Restarting the server.
[Thu Mar 15 12:56:49 2007] [notice] Child 4096: Exit event signaled.
Child process is ending.
[Thu Mar 15 12:56:49 2007] [notice] Apache/2.2.4 (Win32) configured --
resuming normal operations
[Thu Mar 15 12:56:49 2007] [notice] Server built: Jan  9 2007 23:17:20
[Thu Mar 15 12:56:49 2007] [notice] Parent: Created child process 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(481): Parent: Sent the
scoreboard to the child
[Thu Mar 15 12:56:49 2007] [notice] Child 3864: Child process is running
[Thu Mar 15 12:56:49 2007] [info] Parent: Duplicating socket 352 and
sending it to child process 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(599): Parent: Sent 1
listeners to child 3864
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(402): Child 3864:
Retrieved our scoreboard from the parent.
[Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(558): Child 3864:
retrieved 1 listeners from parent
[Thu Mar 15 12:56:50 2007] [notice] Child 4096: Released the start mutex
[Thu Mar 15 12:56:50 2007] [notice] Child 3864: Acquired the start
mutex.
[Thu Mar 15 12:56:50 2007] [notice] Child 3864: Starting 250 worker
threads.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: Waiting for 250 worker
threads to exit.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: All worker threads have
exited.
[Thu Mar 15 12:56:51 2007] [notice] Child 4096: Child process is exiting
[Thu Mar 15 12:56:51 2007] [notice] Child 3864: Starting thread to
listen on port 80.

So, everything seems fine... so far as I can see.

The problem is, the server _NEVER_ responds to a single get command.
Here's everything I tried so far:

- I've tried IE and Firefox, no difference... they just sit and wait
until they timeout.

- I've tried telneting to the server.  I get connected but any get
command I've tried results in no response and no disconnection... it
just sits there like I haven't typed anything.  If you stop the server
while telneted to it, you get disconnected - so I know it's the right
server.

- I've stopped the server, done a netstat (it wasn't there), restart the
server and done a netstat (now it's there).

- The access log is _completely_ empty... no help there.

- I've disabled all firewalls and networking protection - including
uninstalling my virus scanner.

- I've made sure IIS works on port 80 - so I know it's not a firewall
issue.

- I've tried reconfiguring the server for a different port (8081), no
difference.

- To be safe I've rebooted after messing with firewalls and uninstalling
virus scanners, etc.  (_the_ windows solution didn't work)

- I've even reinstalled the thing _several_ times.


I'm running out of ideas... anyone else have any I haven't thought of?

- Gareth

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread matt farey


Gareth Howlett wrote:
> Hi,
>
> I'm new to the list but a long time user of apache - great piece of
> software.  I've never needed this list before but I seem to have run
> into a rather odd problem I can't solve.
>
> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
> boxes.  I moved IIS over to port 8080 and installed apache on port 80.
> The installation went off without a hitch - the install log has no
> errors at all.  The first thing I did was cranked the log level up to
> debug and restart the server.  The error log now contains the following:
>
> [Thu Mar 15 12:56:49 2007] [notice] Parent: Received restart signal --
> Restarting the server.
> [Thu Mar 15 12:56:49 2007] [notice] Child 4096: Exit event signaled.
> Child process is ending.
> [Thu Mar 15 12:56:49 2007] [notice] Apache/2.2.4 (Win32) configured --
> resuming normal operations
> [Thu Mar 15 12:56:49 2007] [notice] Server built: Jan  9 2007 23:17:20
> [Thu Mar 15 12:56:49 2007] [notice] Parent: Created child process 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(481): Parent: Sent the
> scoreboard to the child
> [Thu Mar 15 12:56:49 2007] [notice] Child 3864: Child process is running
> [Thu Mar 15 12:56:49 2007] [info] Parent: Duplicating socket 352 and
> sending it to child process 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(599): Parent: Sent 1
> listeners to child 3864
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(402): Child 3864:
> Retrieved our scoreboard from the parent.
> [Thu Mar 15 12:56:49 2007] [debug] mpm_winnt.c(558): Child 3864:
> retrieved 1 listeners from parent
> [Thu Mar 15 12:56:50 2007] [notice] Child 4096: Released the start mutex
> [Thu Mar 15 12:56:50 2007] [notice] Child 3864: Acquired the start
> mutex.
> [Thu Mar 15 12:56:50 2007] [notice] Child 3864: Starting 250 worker
> threads.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: Waiting for 250 worker
> threads to exit.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: All worker threads have
> exited.
> [Thu Mar 15 12:56:51 2007] [notice] Child 4096: Child process is exiting
> [Thu Mar 15 12:56:51 2007] [notice] Child 3864: Starting thread to
> listen on port 80.
>
> So, everything seems fine... so far as I can see.
>
> The problem is, the server _NEVER_ responds to a single get command.
> Here's everything I tried so far:
>
> - I've tried IE and Firefox, no difference... they just sit and wait
> until they timeout.
>
> - I've tried telneting to the server.  I get connected but any get
> command I've tried results in no response and no disconnection... it
> just sits there like I haven't typed anything.  If you stop the server
> while telneted to it, you get disconnected - so I know it's the right
> server.
>
> - I've stopped the server, done a netstat (it wasn't there), restart the
> server and done a netstat (now it's there).
>
> - The access log is _completely_ empty... no help there.
>
> - I've disabled all firewalls and networking protection - including
> uninstalling my virus scanner.
>
> - I've made sure IIS works on port 80 - so I know it's not a firewall
> issue.
>
> - I've tried reconfiguring the server for a different port (8081), no
> difference.
>
> - To be safe I've rebooted after messing with firewalls and uninstalling
> virus scanners, etc.  (_the_ windows solution didn't work)
>
> - I've even reinstalled the thing _several_ times.
>
>
> I'm running out of ideas... anyone else have any I haven't thought of?
>
> - Gareth
>
>   
Is it sending headers. use a proxy like fiddlertool to see.
do you have any rules or is it a defulat install.
assuming its bound to 127.0.0.1
you did this right?

telnet 127.0.0.1 80[enter]
GET / HTTP/1.1[enter]
Host: 127.0.0.1[enter]
User-Agent: firefox[enter][enter]

You could install wireshark and packet capture some connection attempts.
thats what i do when the server is apparently not sending headers.


Matthew Farey




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Tom Donovan

Gareth Howlett wrote:

I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
boxes.  I moved IIS over to port 8080 and installed apache on port 80.
The installation went off without a hitch - the install log has no
...
The problem is, the server _NEVER_ responds to a single get command.
...
- The access log is _completely_ empty... no help there.
...
- I've disabled all firewalls and networking protection - including



With Apache 2.2.4 on Win2k you will need to use the Win32DisableAcceptEx directive to correct a 
different bug - so it is worth giving it a try.


FYI - an APR Bug (http://issues.apache.org/bugzilla/show_bug.cgi?id=41321) requires that 
Win2k/Apache 2.2.4 users have the Win32DisableAcceptEx directive in their conf, else IP addresses 
show as 0.0.0.0 in the logs, cgi's, etc.


-tom-


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] php files displayed as 'text'

2007-03-15 Thread Evan Platt
Ok FINALLY got apache back up and running on my os/x box (don't ask. 
Don't know what I did). 2.2.4


Now when I try to load index.php, the 'text' is displayed.

I don't know what information is needed to help troubleshoot...

Relvent (AFAICT) lines from my httpd.conf:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler php-script   php
AddType text/html   php


I don't see any modules (in my modules directory) that look like 
they're needed?


I compiled apache with ./configure --enable-mods-shared=most 
--prefix=/Library/Apache2 --enable-ssl


Any help appreciated.

I'm using Php 4.4.4.

Thanks.

Evan


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Cannot use ServerName with a reverse proxy

2007-03-15 Thread Jeremie Le Hen
Hi list,

I'm fiddling a bit with OpenBSD's default httpd(8) to create a very
simple reverse proxy.  Unfortunately, I'm experiencing a weird
behaviour when I use the ServerName directive.

The configuration file is straightforward:
%   ServerType standalone
%   ServerRoot "/var/www"
%   PidFile logs/httpd.pid
%   ScoreBoardFile logs/apache_runtime_status
%   
%   Listen 10.0.40.100:80
%   
%   User www
%   Group www
%   Port 80
%   ServerAdmin [EMAIL PROTECTED]
%   ServerName proxy.jeremie.vmware
%   
%   UseCanonicalName On
%   
%   LogLevel debug
%   
%   LogFormat "%h %l %u %t \"%r\" %>s %b" common
%   CustomLog logs/access_log common
%   
%   LoadModule proxy_module /usr/lib/apache/modules/libproxy.so
%   
%   ProxyPass / http://www.jeremie.vmware/
%   ProxyPassReverse / http://www.jeremie.vmware/
%   

When I comment out the ServerName directive, the reverse proxy works.

When ServerName is used, it doesn't work anymore and I get the
following error message in Firefox:
%   Proxy Error
%   The proxy server could not handle the request GET /.
%   
%   Reason: Host not found

DNS names are correctly set:
%   tintin:/var/www/conf 223# host www.jeremie.vmware
%   www.jeremie.vmware is an alias for haddock80.jeremie.vmware.
%   haddock80.jeremie.vmware has address 10.0.80.200
%   www.jeremie.vmware is an alias for haddock80.jeremie.vmware.
%   www.jeremie.vmware is an alias for haddock80.jeremie.vmware.
%
%   tintin:/var/www/conf 224# host proxy.jeremie.vmware
%   proxy.jeremie.vmware is an alias for tintin40.jeremie.vmware.
%   tintin40.jeremie.vmware has address 10.0.40.100
%   proxy.jeremie.vmware is an alias for tintin40.jeremie.vmware.
%   proxy.jeremie.vmware is an alias for tintin40.jeremie.vmware.


As you can see, I asked for debug message in ErrorLog, but I can't
see anything relevant.  The only line issued when the query is made
is :
%[Thu Mar 15 18:40:40 2007] [debug] proxy_cache.c(0): No CacheRoot,
%so no caching. Declining.

Though this may appear quite off-topic, I tried to provide
httpd.conf(5) with a CacheRoot directive, but this doesn't resolve my
problem...  Instead I have the following messages:
%   [Thu Mar 15 18:42:31 2007] [debug] proxy_cache.c(0): Request for
%   http://www.jeremie.vmware/, pragma_req=(unset), ims=0
%   [Thu Mar 15 18:42:31 2007] [debug] proxy_util.c(0): File
%   /proxy/K/A/I/[EMAIL PROTECTED] not found
%   [Thu Mar 15 18:42:31 2007] [debug] proxy_cache.c(0): Local copy
%   not present or expired. Declining.


Any clue will be welcome!
Thank you.
Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache problem with MSIE

2007-03-15 Thread prash reddy

Hi All,

I am working on Apache 2.0.50 on Linux, proxying the requests to weblogic
server by path using the location block.

Here is the problem: In application,When i simply hit the browser back
button, i can see that all the commentents being lost which were entered in
previuos page.

Its only happening with MSIE, where as it is working fine with firefox.

is it a problem with application code or apache webserver settings?

Thnaks
sharath


RE: [EMAIL PROTECTED] Apache problem with MSIE

2007-03-15 Thread Mark Lavi
The fact that you see different results in web browsers reveals the
answer to your question: the Apache web server does not change in your
experiment.

 

The answer to your question: understanding the stateless protocol of
HTTP (REST) is why your application will respond with preserved fields
when the back button on any browser retrieves the page from a web
server. If your browser fetches from it's own cache, then it can
preserve the field values as a convenience - that is probably why you
see the difference in the browsers.

 

Either way, Apache and your application are not involved when a browser
chooses to go BACK and restores form field values.

 

--Mark 

Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707



From: prash reddy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 1:50 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] Apache problem with MSIE

 

Hi All,

I am working on Apache 2.0.50 on Linux, proxying the requests to
weblogic server by path using the location block.

Here is the problem: In application,When i simply hit the browser back
button, i can see that all the commentents being lost which were entered
in previuos page. 

Its only happening with MSIE, where as it is working fine with firefox.

is it a problem with application code or apache webserver settings?

Thnaks
sharath 



RE: [EMAIL PROTECTED] php files displayed as 'text'

2007-03-15 Thread Mark Lavi
You should insure that PHP module available and loaded.

If you compiled it in as a static module, you can look at the httpd -l
option to see if it is there.
Otherwise, you can enable mod_status to check your configuration in real
time.

--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707

-Original Message-
From: Evan Platt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 12:49 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] php files displayed as 'text'

Ok FINALLY got apache back up and running on my os/x box (don't ask. 
Don't know what I did). 2.2.4

Now when I try to load index.php, the 'text' is displayed.

I don't know what information is needed to help troubleshoot...

Relvent (AFAICT) lines from my httpd.conf:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddHandler php-script   php
AddType text/html   php


I don't see any modules (in my modules directory) that look like 
they're needed?

I compiled apache with ./configure --enable-mods-shared=most 
--prefix=/Library/Apache2 --enable-ssl

Any help appreciated.

I'm using Php 4.4.4.

Thanks.

Evan


-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Problem loading Ver 2.2.4 with MS Vista

2007-03-15 Thread MJ & Bob Ampula
Have checked with Microsoft but the only help there was a referral to Dell. 
Dell Tech Support said that the Winnt Server folder has been moved in Vista 
but could/would not tell me where.  They then referred me to Microsoft - 
full circle with no answers.


The folder must have also been renamed in Vista because a search does not 
locate the folder/file. Any suggestions on how to address this issue or is 
this a technical "bug"?


BTW - there are many drivers still unavailable for Vista, cannot use the HP 
laser printer or PDA with Vista, for example.  Is this issue one of Apache 
not being caught up to Vista?


Thanks.

- Original Message - 
From: "MJ & Bob Ampula" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 15, 2007 8:50 AM
Subject: Re: [EMAIL PROTECTED] Problem loading Ver 2.2.4 with MS Vista



Yes, I was installing as Administrator.

- Original Message - 
From: "William A. Rowe, Jr." <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 15, 2007 2:11 AM
Subject: Re: [EMAIL PROTECTED] Problem loading Ver 2.2.4 with MS Vista



MJ & Bob Ampula wrote:

Attempting to set up a local test server on our new laptop running
Windows Vista.


There's next to no research yet on how the security context changes
in the many variations of Vista affect the installer.

http://www.apache.org/dist/httpd/binaries/win32/TROUBLESHOOTING.html

has some hints to provide us more details of what happens during
installation.

One specific question - were you installing as Administrator?

-
The official User-To-User support forum of the Apache HTTP Server 
Project.

See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Dragon

Hello all,

I am attempting to help a non-profit organization setup a new server 
and migrate over their old stuff. One of the things they want to use 
is a database application using Ruby on Rails.


This system is an up to date FC4 distribution running Plesk 8.1 
control panel, instead of the "standard" FastCGI module, they use one 
called mod_fcgid that is supposed to play better with Plesk. Plesk 
also says that enabling RoR is a simple matter of enabling FastCGI 
support, all I can say to that is it isn't as simple as they say. 
Just do a Google on "Plesk Ruby Rails" and you will see how much 
trouble people have gone through trying to get this to work in that 
environment (but I digress...)


I have been having a hell of a time attempting to get this to work 
and have come down to the point where I believe I have diagnosed the 
problem to be that both mod_fcgid and mod_cgi choke and exit giving 
an error that says "Premature end of script headers"


I have verified that Ruby and Rails are working using the test 
browser they provide, the application functions fine when I do that. 
When attempting to use Apache to serve the application via either 
FastCGI or regular CGI, it simply will not work. This is not only 
true of this Ruby-based application but also for any script or 
program I attempt to execute via FastCGI or regular CGI (Perl, 
binary, shell script, etc.).


I do get errors in my httpd error log when using FastCGI but I have 
no idea what they are really telling me. The underlying cause of the 
error is not given in the errors. Here is what I typically get when I 
try to access the script:


[Thu Mar 15 14:43:20 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) 
started
[Thu Mar 15 14:43:21 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) 
started
[Thu Mar 15 14:43:22 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) 
started
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963) 
exit(communication error), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960) 
exit(server exited), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959) 
exit(server exited), terminated by calling exit(), return code: 120



If I use regular CGI, all I get is the premature end of script 
headers error without any further information.


I am at a loss on how to proceed from here.

If anyone can help me figure out how to configure this system to get 
CGI and FastCGI working, I would greatly appreciate it. I have been 
working on this for nearly a week and it is making me crazy.


Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Gareth Howlett
Hi Matthew & Tom,

It works!

Matthew, I hadn't thought of that but I jumped over the mime-type header
response you were looking for and went straight to ethereal/wireshark...
I could see the entire conversation to the webserver.  Every character
of my telnet session was sent and ACKed but after the carriage return,
one ACK was sent and then nothing else from either side.

After this I went-on to Tom's suggestion.

Adding the "Win32DisableAcceptEx" directive (on the top level of the
apache config file) did the trick.  After a restart of the server,
everything started working just like it should.

Thanks for the help!,

- Gareth

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Mark Lavi
Caveat: I have no direct experience with Ruby, Plesk, or FastCGI.

I do think that by verifying that your example RoR app works via Apache
and then observing that the other database RoR app does not, you've
isolated the problem to the latter application!

"Premature end of script headers" is what I've seen whenever a PERL CGI
crashes or generates an error condition that doesn't let it output
anything (such as a syntax error). At that point, I try running the CGI
directly from the command line to partially simulate what Apache tries
to execute, e.g.: perl whateverproblem.cgi -- but this is not always
identical to what Apache encounters, it's just another step for
troubleshooting. I have no idea if you could do the same for Ruby and
your app.

Hope this helps,

--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707

-Original Message-
From: Dragon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 3:12 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] FastCGI problem

Hello all,

I am attempting to help a non-profit organization setup a new server 
and migrate over their old stuff. One of the things they want to use 
is a database application using Ruby on Rails.

This system is an up to date FC4 distribution running Plesk 8.1 
control panel, instead of the "standard" FastCGI module, they use one 
called mod_fcgid that is supposed to play better with Plesk. Plesk 
also says that enabling RoR is a simple matter of enabling FastCGI 
support, all I can say to that is it isn't as simple as they say. 
Just do a Google on "Plesk Ruby Rails" and you will see how much 
trouble people have gone through trying to get this to work in that 
environment (but I digress...)

I have been having a hell of a time attempting to get this to work 
and have come down to the point where I believe I have diagnosed the 
problem to be that both mod_fcgid and mod_cgi choke and exit giving 
an error that says "Premature end of script headers"

I have verified that Ruby and Rails are working using the test 
browser they provide, the application functions fine when I do that. 
When attempting to use Apache to serve the application via either 
FastCGI or regular CGI, it simply will not work. This is not only 
true of this Ruby-based application but also for any script or 
program I attempt to execute via FastCGI or regular CGI (Perl, 
binary, shell script, etc.).

I do get errors in my httpd error log when using FastCGI but I have 
no idea what they are really telling me. The underlying cause of the 
error is not given in the errors. Here is what I typically get when I 
try to access the script:

[Thu Mar 15 14:43:20 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959)

started
[Thu Mar 15 14:43:21 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960)

started
[Thu Mar 15 14:43:22 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963)

started
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963)

exit(communication error), terminated by calling exit(), return code:
120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960)

exit(server exited), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959)

exit(server exited), terminated by calling exit(), return code: 120


If I use regular CGI, all I get is the premature end of script 
headers error without any further information.

I am at a loss on how to proceed from here.

If anyone can help me figure out how to configure this system to get 
CGI and FastCGI working, I would greatly appreciate it. I have been 
working on this for nearly a week and it is making me crazy.

Dragon

~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Mark Lavi
I see I probably replied without reading everything you've done, my
assertions may not be correct if you've not gotten anything to work
through Apache. You can try increasing the amount/level of error logging
in Apache.

--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707

-Original Message-
From: Mark Lavi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 3:44 PM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] FastCGI problem

Caveat: I have no direct experience with Ruby, Plesk, or FastCGI.

I do think that by verifying that your example RoR app works via Apache
and then observing that the other database RoR app does not, you've
isolated the problem to the latter application!

"Premature end of script headers" is what I've seen whenever a PERL CGI
crashes or generates an error condition that doesn't let it output
anything (such as a syntax error). At that point, I try running the CGI
directly from the command line to partially simulate what Apache tries
to execute, e.g.: perl whateverproblem.cgi -- but this is not always
identical to what Apache encounters, it's just another step for
troubleshooting. I have no idea if you could do the same for Ruby and
your app.

Hope this helps,

--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707

-Original Message-
From: Dragon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 3:12 PM
To: users@httpd.apache.org
Subject: [EMAIL PROTECTED] FastCGI problem

Hello all,

I am attempting to help a non-profit organization setup a new server 
and migrate over their old stuff. One of the things they want to use 
is a database application using Ruby on Rails.

This system is an up to date FC4 distribution running Plesk 8.1 
control panel, instead of the "standard" FastCGI module, they use one 
called mod_fcgid that is supposed to play better with Plesk. Plesk 
also says that enabling RoR is a simple matter of enabling FastCGI 
support, all I can say to that is it isn't as simple as they say. 
Just do a Google on "Plesk Ruby Rails" and you will see how much 
trouble people have gone through trying to get this to work in that 
environment (but I digress...)

I have been having a hell of a time attempting to get this to work 
and have come down to the point where I believe I have diagnosed the 
problem to be that both mod_fcgid and mod_cgi choke and exit giving 
an error that says "Premature end of script headers"

I have verified that Ruby and Rails are working using the test 
browser they provide, the application functions fine when I do that. 
When attempting to use Apache to serve the application via either 
FastCGI or regular CGI, it simply will not work. This is not only 
true of this Ruby-based application but also for any script or 
program I attempt to execute via FastCGI or regular CGI (Perl, 
binary, shell script, etc.).

I do get errors in my httpd error log when using FastCGI but I have 
no idea what they are really telling me. The underlying cause of the 
error is not given in the errors. Here is what I typically get when I 
try to access the script:

[Thu Mar 15 14:43:20 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959)

started
[Thu Mar 15 14:43:21 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960)

started
[Thu Mar 15 14:43:22 2007] [notice] mod_fcgid: server 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963)

started
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29963)

exit(communication error), terminated by calling exit(), return code:
120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29960)

exit(server exited), terminated by calling exit(), return code: 120
[Thu Mar 15 14:43:25 2007] [notice] mod_fcgid: process 
/var/www/vhosts/example.org/httpdocs/fighter/public/dispatch.fcgi(29959)

exit(server exited), terminated by calling exit(), return code: 120


If I use regular CGI, all I get is the premature end of script 
headers error without any further information.

I am at a loss on how to proceed from here.

If anyone can help me figure out how to configure this system to get 
CGI and FastCGI working, I would greatly appreciate it. I have been 
working on this for nearly a week and it is making me crazy.

Dragon

~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EM

RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Dragon

Mark Lavi wrote:

Caveat: I have no direct experience with Ruby, Plesk, or FastCGI.

I do think that by verifying that your example RoR app works via Apache
and then observing that the other database RoR app does not, you've
isolated the problem to the latter application!

"Premature end of script headers" is what I've seen whenever a PERL CGI
crashes or generates an error condition that doesn't let it output
anything (such as a syntax error). At that point, I try running the CGI
directly from the command line to partially simulate what Apache tries
to execute, e.g.: perl whateverproblem.cgi -- but this is not always
identical to what Apache encounters, it's just another step for
troubleshooting. I have no idea if you could do the same for Ruby and
your app.

Hope this helps,

 End original message. -

Actually no, you appear to have misread what I said in my original 
post. The application works with the web server bundled with Ruby 
which is simply for testing and not intended for production.


It does not work with Apache. Nothing using either FastCGI or regular 
CGI works. Period.


Everything, including scripts that run fine on other servers, simply 
fail. Everything fails with the Premature end of script headers errors.




Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Dragon

Mark Lavi wrote:

I see I probably replied without reading everything you've done, my
assertions may not be correct if you've not gotten anything to work
through Apache. You can try increasing the amount/level of error logging
in Apache.

 End original message. -

And how does one do this?

Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Mark Lavi
http://httpd.apache.org/docs/2.2/logs.html
specifically: http://httpd.apache.org/docs/2.2/mod/core.html#loglevel


--Mark 
Mark Lavi, Enterprise Web Management Team @ SGI
mailto:[EMAIL PROTECTED] || phone:+1-650-933-7707

-Original Message-
From: Dragon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 4:04 PM
To: users@httpd.apache.org
Subject: RE: [EMAIL PROTECTED] FastCGI problem

Mark Lavi wrote:
>I see I probably replied without reading everything you've done, my
>assertions may not be correct if you've not gotten anything to work
>through Apache. You can try increasing the amount/level of error
logging
>in Apache.
 End original message. -

And how does one do this?

Dragon

~~~
  Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server
Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Memory problems from browser point of view

2007-03-15 Thread jekillen


On Mar 15, 2007, at 5:32 AM, Joshua Slive wrote:


On 3/15/07, jekillen <[EMAIL PROTECTED]> wrote:

Hello;
I have not had experience with this in the past
but I am doing a large project in php and I
need to know what Apache sends the browser
when it is having memory problems.


If you have MaxClients tuned correctly (that is, low enough that
apache processes never wind up in swap space), then when you are low
on memory apache will hit MaxClients and further clients will simply
not be able to connect until a process is available to serve them.

If MaxClients is not tuned correctly, then apache will start trying to
use swap space and responses will become slower and slower until the
server essentially looks dead.


Thanks for the reply. Now I have more to work with
In the first situation, MaxClients is low enough, what
sort of message is likely to be presented? Would this
be distinguishable from  a message generated by
the server being off line?
Jeff K


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] php files displayed as 'text'

2007-03-15 Thread Evan Platt

At 02:37 PM 3/15/2007, Mark Lavi wrote:

You should insure that PHP module available and loaded.

If you compiled it in as a static module, you can look at the httpd -l
option to see if it is there.
Otherwise, you can enable mod_status to check your configuration in real
time.


Ok, I think I found part of the problem. Following directions at
http://www.php.net/manual/en/install.macosx.php

In the section with all the other LoadModules:
  LoadModule php4_module   libexec/httpd/libphp4.so

Directly below that section should be the AddModules; you need:
  AddModule mod_php4.c


The LoadModule is fine, but when I uncomment AddModule, I get

Syntax error on line 159 of /Library/Apache2/conf/httpd.conf:
Invalid command 'AddModule', perhaps misspelled or defined by a 
module not included in the server configuration


Is this no longer correct?

Now it no longer shows a php as text, but just 'hangs' when I load a php page. 



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Tom Donovan

Gareth Howlett wrote:
>> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
>> boxes.  I moved IIS over to port 8080 and installed apache on port 80.
>> The installation went off without a hitch - the install log has no
>> ...
>> The problem is, the server _NEVER_ responds to a single get command.
>> ...
>> - The access log is _completely_ empty... no help there.
>> ...
>> - I've disabled all firewalls and networking protection - including
> ...

Adding the "Win32DisableAcceptEx" directive (on the top level of the
apache config file) did the trick.  After a restart of the server,
everything started working just like it should.


It's great that you are up and running, but a little disconcerting; since your symptoms are not the 
ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I run this same combination 
and Apache always responds for me.  The Win32DisableAcceptEx just fixes the 0.0.0.0 IP address problem.


If you can remember, it would be helpful to try it both with and without Win32DisableAcceptEx when 
Apache 2.2.5 is released.  If it still doesn't work without Win32DisableAcceptEx, then it is 
something other than bug http://issues.apache.org/bugzilla/show_bug.cgi?id=41321 - so entering a new 
bug would be appropriate


-tom-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Gareth Howlett

I'll try to remember to retest.  In fairness though, the machine has a
_TON_ of different Network connections... some VPNs, some modem, some
Ethernet, etc... it could be _very_ hard to reproduce on another
machine.  Not to mention the machine is not mine - it belongs to a
co-worker who is at a satellite location.  I might even get my hands on
this machine again for quite a while... but, like I said, I'll do what I
can.

- Gareth

-Original Message-
From: Tom Donovan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 15, 2007 4:41 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Apache on Win2K won't respond

Gareth Howlett wrote:
 >> I downloaded and ran the .MSI installer of 2.2.4 on one of my Win2K
 >> boxes.  I moved IIS over to port 8080 and installed apache on port
80.
 >> The installation went off without a hitch - the install log has no
 >> ...
 >> The problem is, the server _NEVER_ responds to a single get command.
 >> ...
 >> - The access log is _completely_ empty... no help there.
 >> ...
 >> - I've disabled all firewalls and networking protection - including
 > ...
> Adding the "Win32DisableAcceptEx" directive (on the top level of the
> apache config file) did the trick.  After a restart of the server,
> everything started working just like it should.

It's great that you are up and running, but a little disconcerting;
since your symptoms are not the 
ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I
run this same combination 
and Apache always responds for me.  The Win32DisableAcceptEx just fixes
the 0.0.0.0 IP address problem.

If you can remember, it would be helpful to try it both with and without
Win32DisableAcceptEx when 
Apache 2.2.5 is released.  If it still doesn't work without
Win32DisableAcceptEx, then it is 
something other than bug
http://issues.apache.org/bugzilla/show_bug.cgi?id=41321 - so entering a
new 
bug would be appropriate

-tom-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Joshua Slive

On 3/15/07, Tom Donovan <[EMAIL PROTECTED]> wrote:


> Adding the "Win32DisableAcceptEx" directive (on the top level of the
> apache config file) did the trick.  After a restart of the server,
> everything started working just like it should.

It's great that you are up and running, but a little disconcerting; since your 
symptoms are not the
ones that Win32DisableAcceptEx is supposed to fix in Win2k/Apache224.  I run 
this same combination
and Apache always responds for me.  The Win32DisableAcceptEx just fixes the 
0.0.0.0 IP address problem.


No, Win32DisableAcceptEx makes apache fall back to some less-advanced
networking routines. This can solve all sorts of problems,
particularly with buggy network drivers, software firewalls, virus
checkers and similar.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] FastCGI problem

2007-03-15 Thread Dragon

Mark Lavi did speak thusly:

http://httpd.apache.org/docs/2.2/logs.html
specifically: http://httpd.apache.org/docs/2.2/mod/core.html#loglevel

 End original message. -

Thanks, I will give it a try and see if anything of interest surfaces.

Dragon

~~~
 Venimus, Saltavimus, Bibimus (et naribus canium capti sumus)
~~~


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Tom Donovan

Joshua Slive wrote:

No, Win32DisableAcceptEx makes apache fall back to some less-advanced
networking routines. This can solve all sorts of problems,
particularly with buggy network drivers, software firewalls, virus
checkers and similar.



True - but I thought the only accept() vs. AcceptEx() *change* in Apache 2.2.4 
was bug 41321.

Are there additional reasons Win32DisableAcceptEx would be needed with 2.2.4, but not needed with 
2.2.3 in the same environment?


-tom-

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread William A. Rowe, Jr.
Tom Donovan wrote:
> Joshua Slive wrote:
>> No, Win32DisableAcceptEx makes apache fall back to some less-advanced
>> networking routines. This can solve all sorts of problems,
>> particularly with buggy network drivers, software firewalls, virus
>> checkers and similar.
> 
> 
> True - but I thought the only accept() vs. AcceptEx() *change* in Apache
> 2.2.4 was bug 41321.

That is correct, it's a flaw in Windows triggered by a change in apr, where
Windows 2000 (and only 2000) will refuse to honor traditional methods of
determining the remote client IP address/host once a connection is accepted
using the Win32 AcceptEx() API call.

The flaw in apr of presuming we don't have that host identification already
is resolved for the next release of apr and httpd (2.2.5).

> Are there additional reasons Win32DisableAcceptEx would be needed with
> 2.2.4, but not needed with 2.2.3 in the same environment?

Not that I know of.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Apache on Win2K won't respond

2007-03-15 Thread Joshua Slive

On 3/15/07, Tom Donovan <[EMAIL PROTECTED]> wrote:

Joshua Slive wrote:
> No, Win32DisableAcceptEx makes apache fall back to some less-advanced
> networking routines. This can solve all sorts of problems,
> particularly with buggy network drivers, software firewalls, virus
> checkers and similar.


True - but I thought the only accept() vs. AcceptEx() *change* in Apache 2.2.4 
was bug 41321.

Are there additional reasons Win32DisableAcceptEx would be needed with 2.2.4, 
but not needed with
2.2.3 in the same environment?


This is likely true, but the original problem report was a fresh 2.2.4
install, not a 2.2.3 to 2.2.4 upgrade.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [EMAIL PROTECTED] can't get virtual host working

2007-03-15 Thread Boyle Owen
> -Original Message-
> From: bbxrider [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 15, 2007 9:05 AM
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] can't get virtual host working
> 
> 
> i am running apache 2.2.4 on winxp pro, the apache machine is 
> on my lan
> behind a router and nothing else
> please see my directives for my .conf file below, at least 
> the ones that
> seem to pertain to virtual host. 
> when a browser is addressed to either domain, the default 
> page from htdocs
> is returned, not the domain page, try it! 
> you will see my dir structure in the virtual host directives. 
> also below is the output from httpd -S which looks ok to me, 
> ok to a first
> apache install newbie
> i've tried many variations on the ip addr instead of *, like 
> the local lan
> addr, 127.0.0.1, etc
> any ideas to try from here??

Go to http://httpd.apache.org/docs/2.2/vhosts/name-based.html and read
the box titled "Main host goes away"...

Basically, you need to wrap your "default" host in a VH container. 

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> *:80   is a NameVirtualHost
> default server www.mywarmbeach.com (C:/apache2/conf/httpd.conf:228)
> port 80 namevhost www.mywarmbeach.com (C:/apache2/conf/httpd.conf:228)
> port 80 namevhost www.job1data.com (C:/apache2/conf/httpd.conf:237)
> Syntax OK
> 
> ServerRoot "C:/apache2"
> Listen 80
> DocumentRoot "C:/apache2/htdocs"
> 
> Options Indexes FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> 
> NameVirtualHost  *:80
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot C:/apache2/htdocs/mywarmbeach
> DirectoryIndex index.html index.htm
> ServerName www.mywarmbeach.com
> ServerAlias mywarmbeach.com *.mywarmbeach.com
> ErrorLog C:/apache2/log/www.mywarmbeach-error_log
>  #  CustomLog C:/apache2/log/www.mywarmbeach-access_log
> 
> 
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot C:/apache2/htdocs/job1data
> DirectoryIndex index.html index.htm
> ServerName www.job1data.com
> ServerAlias job1data.com *.job1data.com
> ErrorLog C:/apache2/log/www.job1data-error_log
>  #  CustomLog C:/apache2/log/www.mywarmbeach-access_log
> 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/can%27t-get-virtual-host-working-tf34068
65.html#a9490024
> Sent from the Apache HTTP Server - Users mailing list archive 
> at Nabble.com.
> 
> 
> -
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]