Re: [EMAIL PROTECTED] Apache 2.2.3 monitor

2006-12-07 Thread Norman Peelman
Apache 2.2.3 monitor- Original Message - 
From: Lucuk, Pete 
To: users@httpd.apache.org 
Sent: Wednesday, December 06, 2006 8:59 AM
Subject: [EMAIL PROTECTED] Apache 2.2.3 monitor




Hello, 
I have Apache 2.2.3 with mod_ssl and mod_jk installed and they work like a 
champ! 
I am now wrapping up my Apache setup with a maintenance in mind. 
I would like to setup something that would. 
- test to see is Apache is up or down 
- if Apache is up, do nothing 
- if Apache is down, bring it back up ASAP 
I could write some Java or a shell script that pinged a web page on Apache or 
something like that, BUT that seems kinds clunky in 2006 to do that.
Is there something already available out there that meets the above 
requirements that is the standard correct way to monitor Apache and start it if 
it goes down?
Thanks much 
Pete 

If this is on Windows then set up Apache as a service, go into properties 
and tell it to restart upon failure. It gives you several options of what to do 
on failure - restart, run a program, etc.



Norm
---
FREE Avatar hosting at www.easyavatar.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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Norman Peelman
- Original Message - 
From: "Gaming Mouse" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, December 06, 2006 6:36 PM
Subject: Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work


> 
> > It sure sounds like you are doing the right things.  Try this - once the
> > httpd window is closed, look in your Task Manager (rt-click the start bar)
> > and see that there are no 'apache' or 'httpd' processes running.  If there
> > are, kill them and let us know - terminating the httpd you 'see' in the
> > console window should be killing them off.
> >   
> 
> Thanks for your reply William.
> 
> I should have mentioned in my original post that I had already done 
> that, and am still seeing the error.  I even went as far as restarting 
> windows.
> 
> Thanks for any further help,
> Jonah
> 
> 

Sounds to me like Apache can't find the httpd.conf file for some reason... 
there should be a command switch to force it to look at a specific place:

httpd -V

should tell you what config that it has been compiled to look for - make sure 
it's in the right place or,

httpd -f "path:/to/config/filename.conf"

will start Apache with said config file.


Norm
---
FREE Avatar hosting at www.easyavatar.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]



[EMAIL PROTECTED] 'mydomain.com' doesn't work ('www.mydomain.com' does)

2006-12-07 Thread thomas Armstrong

Hi.

Working with Apache 2 on Linux, I'm trying to make server accept also
'mydomain.com'
petitions (www.mydomain.com works fine).

Within my httdp.conf, I've got:
-

   ServerName   mydomain.com:80
   ServerAlias  www.mydomain.com
   UseCanonicalName Off
   DocumentRoot /var/www/mydomain.com/httpdocs/www

-

But it doesn't work: when typing 'mydomain.com' on my browser, I get one blank
webpage (not a "Server not found" message). I'd like to know where
http petitions
are launching (in which local directory). Any suggestion?

Thank you very much and happy holidays.

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse

> Sounds to me like Apache can't find the httpd.conf file for some
reason... there should be a command switch to force it to look at a specific
place:
>
> httpd -V
>
> should tell you what config that it has been compiled to look for - make sure
it's in the right place or,
>
> httpd -f "path:/to/config/filename.conf"
>
> will start Apache with said config file.
>
>
> Norm
> ---
>   

Hey Norm,

Thanks for the reply.  Here is the output of httpd -V.  Can you let me 
know if it is indeed not finding httpd.conf and, if not, how I can fix 
the problem permanently?  Do you recommend adding the -f switch info to 
the shortcut that I use to start httpd.exe?

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -V
Server version: Apache/2.2.3
Server built:   Jul 27 2006 16:49:49
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   32-bit
Server MPM: WinNT
  threaded: yes (fixed thread count)
forked: no
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/winnt"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache"
 -D SUEXEC_BIN="/apache/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.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] Apache 2.2.3 monitor

2006-12-07 Thread fRANz

On 12/6/06, Lucuk, Pete <[EMAIL PROTECTED]> wrote:


I would like to setup something that would…

- test to see is Apache is up or down

- if Apache is up, do nothing

- if Apache is down, bring it back up ASAP


Hi.
mon has an http module for check webserver availability:

http://www.kernel.org/software/mon/monitors.html

It works fine for me.
HTH,
-f


Re: [EMAIL PROTECTED] How to notify application server that ssl sessionhasexpired

2006-12-07 Thread Claude Libois

Nobody to help me (or my mail was not clear)?
Claude
- Original Message - 
From: "Claude Libois" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, December 05, 2006 11:52 AM
Subject: [EMAIL PROTECTED] How to notify application server that ssl 
sessionhasexpired




Hello,
For our project we have integrated an electronical identity card( eID)
authentication. This card contains a certificate that is used to establish
an ssl two ways connection with our apache 2.0.54. This certificate is
validated by an OCSP server.
When ssl connections is established, user's certificate is forwarded to a
J2EE application server (weblogic) which create it's own security context
throug a JAAS LoginModule.
Our problem is that we have to (we don't have the choice)  unloged user 
when

ssl session has expired.
So my problem is to notify weblogic that ssl session has expired.
My first idea was to save SSL_SESSION_ID in my J2EE Principal and then
compare this id with the current ssl session id of the request.
So if the current id is different than the id obtained during the
authentication process then the user is unloged.
However, it seems that when I configure a virtualhost in ssl one
ways(SSLVerifyClient none) with a per-directory ssl two ways, sometimes my
ssl session is renewed and
my ssl session id is different. If I configure two-ways at virtualhost 
level

this doesn't happen.
Is there a problem for apache to maintains ssl session if we change the 
ssl

type?
I read on an older post that we can't rely on SSL_SESSION_ID to know if 
ssl

has expired but I don't see any other way to notify my application server.
Any suggestion?

Here is my ssl.conf.For information I have specific application apart from
the main application which is responsible of the authentication.

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl.crl
SSLSessionCacheshmcb:logs/ssl_scache(512000)
SSLSessionCacheTimeout  300
SSLMutex  file:/home/apache-2.0.54/logs/ssl_mutex
SLRandomSeed startup builtin

 ServerName host
 ServerAlias host
 DocumentRoot "/home/apache-2.0.54/htdocs"
 SSLEngine on
 SSLCipherSuite -ALL:SSLv3+HIGH:-aNULL!EXPORT56:RC4+RSA
 SSLProtocol -ALL +SSLv3 +TLSv1
 # Server Certificate:
 SSLCertificateFile
/home/apache-2.0.54/conf/ssl/certificate/server/host.cert
 # Server Private Key:
 SSLCertificateKeyFile
/home/apache-2.0.54/conf/ssl/certificate/server/privkey.key
 SSLCertificateChainFile
"/home/apache-2.0.54/conf/ssl/certificate/chain/chain.pem
 SSLOptions +StrictRequire +StdEnvVars +ExportCertData
 RequestHeader add SSL_SESSION_ID "%{SSL_SESSION_ID}e"
 SetEnvIf User-Agent ".*MSIE.*" ssl-unclean-shutdown
 SSLVerifyClient  none
 SSLCACertificateFile
"/home/weblogic/apache-2.0.54/conf/ssl/certificate/trusted_certificate/client-trusted-list.pem"
   #Application that does the authentication
   
 SetHandler weblogic-handler
WebLogicCluster host:7001
   
   #main application that needs authentication
   
 SetHandler weblogic-handler
WebLogicCluster host:7001
   
   #Two-ways connection is only established when calling this struts 
action

 
 SSLVerifyClient require
 RequestHeader add WL-Proxy-SSL "true"
 RequestHeader set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}e"
 RequestHeader add SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}e"
 Allow from all
  

   






- Disclaimer: http://www.minfin.fgov.be/disclaimer.htm

-
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]








- Disclaimer: http://www.minfin.fgov.be/disclaimer.htm

-
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] Dir Module problem

2006-12-07 Thread JM
logs below:

i accessed the site www.mydomain.com/ -- no error since the server replied with 
"200" unfortunately the index page did not load... 

xxx.xxx.xxx.xxx - - [07/Dec/2006:19:17:56 +0800] "GET / HTTP/1.0" 200 - 
"-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 
Fedora/1.0.4-4 Firefox/1.0.4"

now i accessed the site including the index page.. www.mydomain.com/index.php   
server replied with "200" and page was loaded
xxx.xxx.xxx.xxx - - [07/Dec/2006:19:18:13 +0800] "GET /index.php 
HTTP/1.0" 200 39380 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) 
Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4"
xxx.xxx.xxx.xxx - - [07/Dec/2006:19:18:14 +0800] "GET 
/index.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.0" 200 2962 
"http://www.mydomain.com/index.php"; "Mozilla/5.0 (X11; U; Linux i686; en-US; 
rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4"


thanks,


On Tuesday 05 December 2006 16:25, Boyle Owen wrote:
> > -Original Message-
> > From: JM [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, December 05, 2006 9:12 AM
> > To: users@httpd.apache.org
> > Cc: Boyle Owen
> > Subject: Re: [EMAIL PROTECTED] Dir Module problem
> >
> > On Thursday 30 November 2006 19:05, Boyle Owen wrote:
> > > > -Original Message-
> > > > From: JM [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, November 30, 2006 11:23 AM
> > > > To: users@httpd.apache.org
> > > > Subject: [EMAIL PROTECTED] Dir Module problem
> > > >
> > > > Hi,
> > > >
> > > > I have this in my httpd.conf
> > > >
> > > > 
> > > > DirectoryIndex index.php
> > > > 
> > > >
> > > > mod_dir - module is listed in the compiled modules
> > > >
> > > > why is it when i try to visit the site..
> > > > http://mydomain.com/sample/
> > > >
> > > > index.php doesn't show up.. i have to manually add
> > > > index.php as part of the
> > > > url.. or use .htaccess to make it work..
> > >
> > > What do you mean "or use .htaccess to make it work.."? What
> >
> > do you put
> >
> > > there?
> >
> > a Rewrite rule...
>
> Oh that's clear then... glad we got that sorted out...
>
> > do you have an idea how to fix this problem?
>
> As long as I'm guessing blind on tiny snippets of info, no.
>
> > http://mydomain.com/ <--- this doesn't work
>
> WTF does "doesn't work" mean? What *exactly* happens? What do you see in
> the error and access logs? (cut'n'paste - don't dream of paraphrasing..)
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>
> > http://mydomain.com/index.php <-- this works
> >
> > > Rgds,
> > > Owen Boyle
> > > Disclaimer: Any disclaimer attached to this message may be ignored.
> > >
> > > > Im using apache 2.2
> >
Mailing-Lists
> >
> >
> > -
> >
> > > > 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]
> >
> > -
> > 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 nam

[EMAIL PROTECTED] apache serves cgi error as application/x-perl

2006-12-07 Thread Tony van der Hoff
Hi,

Apologies if this has been raised before; I couldn't find anything similar
in the faq, nor the last 2 months archives.

I recently upgraded from Apache 2.0 to 2.2. Adjusted the configuration
appropriately, and mostly everything works fine.

However, when the server fails to execute a perl cgi script due to, say, bad
permissions, or a script error, i.e. "premature end of script headers", it
appears to generate the correct 500 error page, but serves it as mime type
appication/x-perl, instead of text/html. The previous version handled this
correctly. 

Error-free scripts work fine, so I don't think it's anything related to
ExecCGI, or addhandler.

This must obviously be a problem with my configuration, but having fiddled
about for a few days, I've not progressed much further. Changing the
mime.types file for .pl to text/html is effective, but it doesnt feel like
the correct solution to the problem.

Has anyone any hints, please?

-- 
Tony van der Hoff| mailto:[EMAIL PROTECTED]
Buckinghamshire, England

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Steve Swift

Well, before you start playing with your shortcut, is there a "conf"
subdirectory below the working directory specified in your shortcut, and
does that conf subdirectory contain your configuration file (which had
better be named "httpd.conf" !)

On 07/12/06, Gaming Mouse <[EMAIL PROTECTED]> wrote:



> Sounds to me like Apache can't find the httpd.conf file for some
reason... there should be a command switch to force it to look at a
specific
place:
>
> httpd -V
>
> should tell you what config that it has been compiled to look for - make
sure
it's in the right place or,
>
> httpd -f "path:/to/config/filename.conf"
>
> will start Apache with said config file.
>
>
> Norm
> ---
>

Hey Norm,

Thanks for the reply.  Here is the output of httpd -V.  Can you let me
know if it is indeed not finding httpd.conf and, if not, how I can fix
the problem permanently?  Do you recommend adding the -f switch info to
the shortcut that I use to start httpd.exe?

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -V
Server version: Apache/2.2.3
Server built:   Jul 27 2006 16:49:49
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture:   32-bit
Server MPM: WinNT
  threaded: yes (fixed thread count)
forked: no
Server compiled with
-D APACHE_MPM_DIR="server/mpm/winnt"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/apache"
-D SUEXEC_BIN="/apache/bin/suexec"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error.log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"





Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.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]





--
Steve Swift
http://www.swiftys.org.uk


Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse
Steve Swift wrote:
> Well, before you start playing with your shortcut, is there a "conf" 
> subdirectory below the working directory specified in your shortcut, 
> and does that conf subdirectory contain your configuration file (which 
> had better be named " httpd.conf" !)
>
Up until this point I have not been using a shortcut.  I've been 
double-clicking the httpd.exe file, which resides in this directory:

C:\Program Files\Apache Software Foundation\Apache2.2

And yes, there is indeed a conf subdir below this directory, and that is 
where httpd.conf is located.

My question was for Norm was: Does the output of "httpd -V" confirm or 
refute his theory about httpd.conf not being found? 

Thanks,
Jonah


 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Boyle Owen
> -Original Message-
> From: Gaming Mouse [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 07, 2006 10:28 AM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work
> 
> 
> > Sounds to me like Apache can't find the httpd.conf file for some
> reason... there should be a command switch to force it to 
> look at a specific
> place:
> >
> > httpd -V
> >
> > should tell you what config that it has been compiled to 
> look for - make sure
> it's in the right place or,
> >
> > httpd -f "path:/to/config/filename.conf"
> >
> > will start Apache with said config file.
> >
> >
> > Norm
> > ---
> >   
> 
> Hey Norm,
> 
> Thanks for the reply.  Here is the output of httpd -V.  Can 
> you let me 
> know if it is indeed not finding httpd.conf and, if not, how 
> ...
>  -D HTTPD_ROOT="/apache"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"

These are the two important lines. Apache was compiled to expect the
config to be at /apache/conf/httpd.conf. Is it?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> 
>  
> __
> __
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.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]



Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse

> These are the two important lines. Apache was compiled to expect the
> config to be at /apache/conf/httpd.conf. Is it?
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored. 
>   

Owen,

What is the initial "/" relative to?  Again, for clarity, I will give 
the complete path on my machine to both the .exe and the .conf file:

C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

Is the "2.2" the problem?  Because if I change "Apache2.2" to "apache", 
then when I double-click httpd.exe, the window opens and instantly 
closes, and I cannot use apache.

Do I need to re-install?  If so, what should I be sure of when I do?

Thanks,
Jonah


 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.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] 'mydomain.com' doesn't work ('www.mydomain.com' does)

2006-12-07 Thread Krist van Besien

On 12/7/06, thomas Armstrong <[EMAIL PROTECTED]> wrote:

Hi.

Working with Apache 2 on Linux, I'm trying to make server accept also
'mydomain.com'
petitions (www.mydomain.com works fine).

Within my httdp.conf, I've got:
-

ServerName   mydomain.com:80
ServerAlias  www.mydomain.com
UseCanonicalName Off
DocumentRoot /var/www/mydomain.com/httpdocs/www

-

But it doesn't work: when typing 'mydomain.com' on my browser, I get one blank
webpage (not a "Server not found" message). I'd like to know where
http petitions
are launching (in which local directory). Any suggestion?


Does "mydomain.com" resolve to the same IP as "www.mydomain.com"?

Just do a domain name lookup on mydomain.com and see where it points.

Krist


--
[EMAIL PROTECTED]
Bremgarten b. Bern, Switzerland
--
"...what you don't realize is that in the future Google WILL reach
sentience, will [have had] invent[ed] a time machine, and will [have
had] travel[ed] back in time to prevent Bill Gates... only to become
Bill Gates by accident because of a search engine optimization
miscalculation." (Comment on the Dilbert Blog)

-
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 hides directory that contains archive .htaccess

2006-12-07 Thread Bruno Oliveira
Hi,

When I place the archive .htaccess inside of a directory that is being
had access for the Apache this exactly directory is occult and alone I
obtain to enter typing the way of the complete directory in the URL
field. 

Example: 

URL www.minhaempresa.com.br/downloads/ when access appears a list of
folders, one of these folders calls lol if I inside place of lol an
archive .htaccess and www.mycompani.com.br/downloads/ access the folder
lol does not appear more and alone I obtain to have access for
www.mycompani.com.br/downloads/lol/ because this happens?

Thz.


-
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 hides directory that contains archive .htaccess

2006-12-07 Thread Joshua Slive

On 12/7/06, Bruno Oliveira <[EMAIL PROTECTED]> wrote:

Hi,

When I place the archive .htaccess inside of a directory that is being
had access for the Apache this exactly directory is occult and alone I
obtain to enter typing the way of the complete directory in the URL
field.

Example:

URL www.minhaempresa.com.br/downloads/ when access appears a list of
folders, one of these folders calls lol if I inside place of lol an
archive .htaccess and www.mycompani.com.br/downloads/ access the folder
lol does not appear more and alone I obtain to have access for
www.mycompani.com.br/downloads/lol/ because this happens?


Security reasons.  It is unsafe to disclose the existence of protected
content by default.  If you don't like it, use the "IndexOptions
ShowForbidden" option:
http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions

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] Apache quit on me all of a sudden?

2006-12-07 Thread Evan Platt

At 10:33 PM 12/6/2006, you wrote:

That'll run the first httpd found in your PATH. On a plain vanilla
MacOSX installation, that is the httpd 1.3.33 that Apple supplies.
However, you must have something else there since 1.3.33 doesn't
recognize the -k flag.


AFAIK, I've removed the Apple version. I'm using 2.2.3.



When you run /Library/Apache2/bin/httpd -l, is mod_ssl.c in the list?


Hmm.. No.
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c



If not, is there a mod_ssl.so in the modules subdirectory? Do you
have a LoadModule line for that?


Yep: 776 mod_ssl.so
LoadModule ssl_module modules/mod_ssl.so




What do you get when you run /Library/Apache2/bin/httpd -V ? Feel
free to paste us the output.


Server version: Apache/2.2.3
Server built:   Dec  7 2006 07:46:10
Server's Module Magic Number: 20051115:3
Server loaded:  APR 1.2.2, APR-Util 1.2.2
Compiled using: APR 1.2.2, APR-Util 1.2.2
Architecture:   32-bit
Server MPM: Prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/Library/Apache2"
 -D SUEXEC_BIN="/Library/Apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"




How about otool -L /Library/Apache2/bin/ httpd ?


otool: can't map file: /Library/Apache2/bin/ ((os/kern) invalid argument)
otool: can't open file: httpd (No such file or directory)


And otool -L /Library/Apache2/modules/mod_ssl.so (if you have
it)? I to my dismay realize that I'm linking against a libssl and
libcrypto that Fink plonked into /sw/lib, and would like to know HtH
that got in my link path... Some autoconf-fu must prefer /sw over / 
usr or something.



/Library/Apache2/modules/mod_ssl.so:
/opt/local/lib/libssl.0.9.8.dylib (compatibility version 
0.9.8, current version 0.9.8)
/opt/local/lib/libcrypto.0.9.8.dylib (compatibility version 
0.9.8, current version 0.9.8)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, 
current version 88.1.7)


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]



Re: [EMAIL PROTECTED] Apache hides directory that contains archive .htaccess

2006-12-07 Thread Bruno Oliveira
On Thu, 2006-12-07 at 11:11 -0500, Joshua Slive wrote:
> Security reasons.  It is unsafe to disclose the existence of protected
> content by default.  If you don't like it, use the "IndexOptions
> ShowForbidden" option:
> http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions
> 
> Joshua.
Version Apache: 2.0

I want that it is showing this directory that contains .htaccess. I
placed the option “IndexOptions ShowForbidden” however when I was to
restart the Apache appears the following message:

[EMAIL PROTECTED] ~]# apachectl stop
Syntax error on line 437 of /usr/local/etc/apache2/httpd.conf:
Invalid directory indexing option

:437

AllowOverride AuthConfig
IndexOptions ShowForbidden


Bruno.


-
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 hides directory that contains archive .htaccess

2006-12-07 Thread Joshua Slive

On 12/7/06, Bruno Oliveira <[EMAIL PROTECTED]> wrote:

On Thu, 2006-12-07 at 11:11 -0500, Joshua Slive wrote:
> Security reasons.  It is unsafe to disclose the existence of protected
> content by default.  If you don't like it, use the "IndexOptions
> ShowForbidden" option:
> http://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions



Version Apache: 2.0



Time to 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]



[EMAIL PROTECTED] DSO-Compiling Error: apxs:Error: Command failed with rc=65536

2006-12-07 Thread sharath reddy

By compiling of the mod_proxy_html (version 2.5.2) for apache2.0.50(on
LINUX) with the command  "apxs -c -I/usr/include/libxml2 -i
mod_proxy_html.c", I get the follow error:


[EMAIL PROTECTED] tmp]# /opt/apache2/bin/apxs -c -I/usr/include/libxml2 -i
mod_proxy_html.c /opt/apache2/build/libtool --silent --mode=compile gcc
-prefer-pic -O2 -pipe -mcpu=i586 -march=i686
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -pthread -I/opt/apache2/include
-I/opt/apache2/include -I/opt/apache2/include  -I/usr/include/libxml2  -c -o
mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:802: `XML_PARSE_RECOVER' undeclared (first use in this
function)
mod_proxy_html.c:802: (Each undeclared identifier is reported only once
mod_proxy_html.c:802: for each function it appears in.)
mod_proxy_html.c:802: `XML_PARSE_NONET' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOBLANKS' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOERROR' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOWARNING' undeclared (first use in this
function)
apxs:Error: Command failed with rc=65536

Can anybody help me to fix this problem.
Thanks,
Sharath


Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Steve Swift

You said that you were double-clicking the httpd.exe
That would make the current directory:
C:\Program Fiels\Apache Software Foundation\Apache 2.2\bin

so apache would go looking for a conf subdirectory of \bin and not find it.

You will have to contsruct a shortcut to launch httpd.exe with a working
directory of:
C:\Program Fiels\Apache Software Foundation\Apache 2.2

Alternatively, you can open a command prompt at that directory and start
apache with the command:
bin\httpd.exe

You cannot do it with a simple double-click.

On 07/12/06, Gaming Mouse <[EMAIL PROTECTED]> wrote:



> These are the two important lines. Apache was compiled to expect the
> config to be at /apache/conf/httpd.conf. Is it?
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>

Owen,

What is the initial "/" relative to?  Again, for clarity, I will give
the complete path on my machine to both the .exe and the .conf file:

C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

Is the "2.2" the problem?  Because if I change "Apache2.2" to "apache",
then when I double-click httpd.exe, the window opens and instantly
closes, and I cannot use apache.

Do I need to re-install?  If so, what should I be sure of when I do?

Thanks,
Jonah





Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.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]





--
Steve Swift
http://www.swiftys.org.uk


Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Flowering Weeds




Does the output of "httpd -V" confirm or
refute his theory about httpd.conf not being found?



Perhaps use Microsoft's Windows PowerShell
to see what the process is really doing.

PS> start-service Apache2.2
PS> get-process http*

Handles  NPM(K)PM(K)  WS(K) VM(M)   CPU(s) Id ProcessName
---  ---  - -   -- -- ---
59  34 1952   447624 0.09   4180 httpd
   297  23 4964   593687 0.08   4204 httpd

PS> [wmi]"win32_process.handle='4204'" |

select-object name, processid, commandline |
format-list




name: httpd.exe
processid   : 4204
commandline : "C:\Program Files\Apache Software 
Foundation\Apache2.2\bin\httpd.
 exe" -d "C:/Program Files/Apache Software 
Foundation/Apache2.2" -
 f "C:\Program Files\Apache Software 
Foundation\Apache2.2\conf\htt
 pd.conf" -d "C:\Program Files\Apache Software 
Foundation\Apache2.

 2\."

PS> stop-service apache2.2
PS>

_
Get free, personalized commercial-free online radio with MSN Radio powered 
by Pandora http://radio.msn.com/?icid=T002MSN03A07001



-
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 hides directory that contains archive .htaccess

2006-12-07 Thread Bruno Oliveira
On Thu, 2006-12-07 at 11:57 -0500, Joshua Slive wrote:
> 
> Time to upgrade.
> 
> Joshua.

please which the procedure to make update for the code source. I use the
FreeBSD system and I go to bring up to date using the Ports I do not
know if it knows.

Bruno.


-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread William A. Rowe, Jr.
Steve Swift wrote:
> You said that you were double-clicking the httpd.exe
> That would make the current directory:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2\bin
> 
> so apache would go looking for a conf subdirectory of \bin and not find it.

The behavior of httpd is to look in ../conf/ so that's probably not it.

> You will have to contsruct a shortcut to launch httpd.exe with a working
> directory of:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2

There should be such a shortcut installed in your Start menu under Apache.

> You cannot do it with a simple double-click.

Not a good idea, no.

On that subject, to the original poster, are you sure you are modifying
the C:\Program Files\Apache Software Foundation\Apache 2.2\conf\httpd.conf,
and not the httpd.conf.default file we install FOR REFERENCE ONLY?

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse
Steve Swift wrote:
> You said that you were double-clicking the httpd.exe
> That would make the current directory:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2\bin
>
> so apache would go looking for a conf subdirectory of \bin and not 
> find it.
>
> You will have to contsruct a shortcut to launch httpd.exe with a 
> working directory of:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2
>
> Alternatively, you can open a command prompt at that directory and 
> start apache with the command:
> bin\httpd.exe
>

Steve,

This made perfect sense, and I thought this was going to work for sure.  
Unfortunately, I tried both methods you suggested and neither one did 
work. Very frustrating.  Any other ideas?

Thanks,
Jonah


 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse
William A. Rowe, Jr. wrote:
>
>> rogram Fiels\Apache Software Foundation\Apache 2.2
>> 
>
> There should be such a shortcut installed in your Start menu under Apache.
>   

Ok, I tried opening the Apache shortcut in the Start Menu -- still no luck.
>
> On that subject, to the original poster, are you sure you are modifying
> the C:\Program Files\Apache Software Foundation\Apache 2.2\conf\httpd.conf,
> and not the httpd.conf.default file we install FOR REFERENCE ONLY?
>   

Yes, I am definitely editing the correct file.   What else could be the 
problem?

Thanks,
Jonah


 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Gaming Mouse
William A. Rowe, Jr. wrote:
>
> There should be such a shortcut installed in your Start menu under Apache.
>
>   
William,

I tried this again, after restarting, and it DID work.  That was the 
problem.  Thanks very much for you help!!

Jonah


 

Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Steve Swift

The behavior of httpd is to look in ../conf/ so that's probably not it.


That's as may be, but the OP ran httpd.exe -V and got:
-D SERVER_CONFIG_FILE="conf/httpd.conf"

So I maintain that double-clicking on the httpd.exe in the /bin subdirectory
will look for /bin/conf/httpd.conf for the configuration file.

However, fixing this hasn't apparently fixed the problem, yet I'm sure this
is where it lies.

My shortcut for starting apache has the command as
"C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe" -w -n
"Apache2.2" -k start

With the "Start in:"
"C:\Program Files\Apache Software Foundation\Apache2.2\"


On 07/12/06, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote:


Steve Swift wrote:
> You said that you were double-clicking the httpd.exe
> That would make the current directory:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2\bin
>
> so apache would go looking for a conf subdirectory of \bin and not find
it.

The behavior of httpd is to look in ../conf/ so that's probably not it.

> You will have to contsruct a shortcut to launch httpd.exe with a working
> directory of:
> C:\Program Fiels\Apache Software Foundation\Apache 2.2

There should be such a shortcut installed in your Start menu under Apache.

> You cannot do it with a simple double-click.

Not a good idea, no.

On that subject, to the original poster, are you sure you are modifying
the C:\Program Files\Apache Software Foundation\Apache 2.2\conf\httpd.conf
,
and not the httpd.conf.default file we install FOR REFERENCE ONLY?

-
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]





--
Steve Swift
http://www.swiftys.org.uk


[EMAIL PROTECTED] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread Ara.T.Howard


i'm trying to setup something which seems like it should be quite simple,
underneath a hierachry which is protected via htpasswd digest auth i'd like to
also allow unauthenticated access from inside our intranet.  this task is
complicated by the fact that our proxy setup makes all requests look like
internal requests with respect to REMOTE_ADDR.  HTTP_CLIENT_IP, however,
correctly reflects the originator.

my .htaccess looks like this:

  SetEnvIfNoCase Client-Ip ^123\.456 INTRANET=123.456

  AuthType Digest
  AuthName "eog-nrt"
  AuthDigestFile /eog/nrt/www/htpasswd
  Require valid-user

  #Allow from env=INTRANET
  #Satisfy Any

  IndexOrderDefault Descending Date
  AddDescription "DMSP Archive" *.d.tgz


this works insomuch as that the environment var INTRANET is indeed set only for
intranet requests.

if i un-comment the above commented lines

  Allow from env=INTRANET
  Satisfy Any

the __all__ requests, whether authenticated or not, intranet based or not, are
allowed?

does this make sense?  i'm sure that is based on a mis-understanding on my part
about Order/Allow/Deny, but i'm sure what i'm trying to do should be possible
solely from this .htaccess file.

thoughts?

ps.  any thoughts on why 'Allow from x.x.x.x' uses REMOTE_ADDR and not
HTTP_CLIENT_IP?


kind regards.


-a
--
if you want others to be happy, practice compassion.
if you want to be happy, practice compassion.  -- the dalai lama

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread William A. Rowe, Jr.
Steve Swift wrote:
>> The behavior of httpd is to look in ../conf/ so that's probably not it.
> 
> That's as may be, but the OP ran httpd.exe -V and got:
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"

The reason is it's conditional on the CWD - NOT the binary path (argv[0]'ish
thing).  SO...

because double clicking gives you something foolish like your personal
documents tree as current working directory, and not the binaries' path,
this is what causes the hassle.

In fact you could drop a conf/httpd.conf into your personal documents
and settings, and everything would work fine by double-clicking.

Sorry - forgotten that it's current path relative and not relative to
the path of httpd.exe.  And it's a behavior I see no reason to change.

-
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] RewriteRule - Trailing slash required on Url

2006-12-07 Thread Dave Kennedy
After installing RoR on Apache 1.3 there is a problem with the trailing
Slash
HowtoInstallAndRunRubyOnRailsOnCpanel
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpane
l

Problem
This url displays the site
1. http://www.yourtestdomain.com/rails/
but this displays 400 Bad Request
2. http://www.yourtestdomain.com/rails

Here is the .htaccess
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

# If you don't want Rails to look in certain directories,
# use the following rewrite rules so that Apache won't rewrite certain
requests
# 
# Example:
#   RewriteCond %{REQUEST_URI} ^/notrails.*
#   RewriteRule .* - [L]

# Redirect all requests not available on the filesystem to Rails
# By default the cgi dispatcher is used which is very slow
# 
# For better performance replace the dispatcher with the fastcgi one
#
# Example:
#   RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On

# If your Rails application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
#   Alias /myrailsapp /path/to/myrailsapp/public
#   RewriteBase /myrailsapp

RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ dispatch.cgi?$1 [QSA,L]
RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]

# In case Rails experiences terminal errors
# Instead of displaying this message you can supply a file here which will
be rendered instead
# 
# Example:
#   ErrorDocument 500 /500.html

ErrorDocument 500 "Application errorRails application failed to
start properly"

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.14/578 - Release Date: 12/7/2006
1:27 AM
 


-
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] MOD PROXY startup error: undefined symbol: ap_proxy_is_word

2006-12-07 Thread Sumit Shah

Hello All,

I added mod_proxy support on my existing Apache2 installation using 'apxs'.

This is what i did:
prompt> apxs -c -i mod_proxy.c

Then I loaded the module in my httpd.conf.

When I restart Apache i get following error:

Syntax error on line 235 of /home/apache2/httpd/prefork/conf/httpd.conf:
Cannot load /home/apache2/httpd/prefork/modules/mod_proxy.so into 
server: /home/apache2/httpd/prefork/modules/mod_proxy.so: undefined 
symbol: ap_proxy_is_word


I looked up on Google and I have seen posts where people had to 
reinstall Apache. Can we do it on an existing Apache installation?


Thanks
Sumit


-
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] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread Joshua Slive

On 12/7/06, Ara.T.Howard <[EMAIL PROTECTED]> wrote:


does this make sense?  i'm sure that is based on a mis-understanding on my part
about Order/Allow/Deny, but i'm sure what i'm trying to do should be possible
solely from this .htaccess file.

thoughts?


You should include an
Order Allow,Deny
Directive.



ps.  any thoughts on why 'Allow from x.x.x.x' uses REMOTE_ADDR and not
HTTP_CLIENT_IP?


Because HTTP_CLIENT_IP is completely non-standard and could be
trivially manipulated by the client in most circumstances?

There used to be a module out there that takes the more-standard
X-Forwarded-For and shoves it into the internal apache structure that
sets REMOTE_ADDR.  You could write a module to do the same with
Client-IP if you want.

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] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread ara . t . howard

On Thu, 7 Dec 2006, Joshua Slive wrote:


On 12/7/06, Ara.T.Howard <[EMAIL PROTECTED]> wrote:

does this make sense?  i'm sure that is based on a mis-understanding on my 
part
about Order/Allow/Deny, but i'm sure what i'm trying to do should be 
possible

solely from this .htaccess file.

thoughts?


You should include an
Order Allow,Deny
Directive.


thanks.  this is what i've got now: seems to work

  SetEnvIfNoCase Client-Ip ^123\.456 INTRANET=123.456
  Order Deny,Allow
  Deny from all
  Allow from env=INTRANET
  Satisfy Any

  AuthType Digest
  AuthName "authname"
  AuthDigestFile htdigest.txt
  Require valid-user

make sense?



ps.  any thoughts on why 'Allow from x.x.x.x' uses REMOTE_ADDR and not
HTTP_CLIENT_IP?


Because HTTP_CLIENT_IP is completely non-standard and could be
trivially manipulated by the client in most circumstances?


hmmm.  in this case i'm behind a server iron, so i assume HTTP_CLIENT_IP is
actually set via the REMOTE_ADDR on __that__ machine.  but the point is well
taken.

still, i think even REMOTE_ADDR could be spoofed easily couldn't it?


There used to be a module out there that takes the more-standard
X-Forwarded-For and shoves it into the internal apache structure that
sets REMOTE_ADDR.  You could write a module to do the same with
Client-IP if you want.


hmmm.  unless someone see issues with above i'll avoid doing any work  ;-)  but
i'll file that away.


-a
--
if you want others to be happy, practice compassion.
if you want to be happy, practice compassion.  -- the dalai lama

-
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] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread Joshua Slive

On 12/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


>> ps.  any thoughts on why 'Allow from x.x.x.x' uses REMOTE_ADDR and not
>> HTTP_CLIENT_IP?
>
> Because HTTP_CLIENT_IP is completely non-standard and could be
> trivially manipulated by the client in most circumstances?

hmmm.  in this case i'm behind a server iron, so i assume HTTP_CLIENT_IP is
actually set via the REMOTE_ADDR on __that__ machine.  but the point is well
taken.


You should be fine if:
1) the proxy clears any existing Client-IP header before setting its own; and
2) the back-end box accepts connections only from the proxy.

(The latter one is a little tricky, since you can't use mod_access to
do this restriction in your current setup.  You'll need to use a
firewall.)



still, i think even REMOTE_ADDR could be spoofed easily couldn't it?


No, it is determined directly from the TCP/IP connection information
which cannot be (easily) spoofed.  The Client-IP is simply a request
header which the client (or proxy) completely controls.

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] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread ara . t . howard

On Thu, 7 Dec 2006, Joshua Slive wrote:


You should be fine if:
1) the proxy clears any existing Client-IP header before setting its own; and
2) the back-end box accepts connections only from the proxy.

(The latter one is a little tricky, since you can't use mod_access to
do this restriction in your current setup.  You'll need to use a
firewall.)


ok.  i'm sure of 2 but not one.  i'll verify  on 1.  thanks.



still, i think even REMOTE_ADDR could be spoofed easily couldn't it?


No, it is determined directly from the TCP/IP connection information which
cannot be (easily) spoofed.  The Client-IP is simply a request header which
the client (or proxy) completely controls.


ok.  i'm understanding correclty then - spoofing remote_addr would most likely
involve packet wrapping.  i'm not sure that would be consider 'hard' - but it
is indeed harder than setting headers.

thanks for the info!

-a
--
if you want others to be happy, practice compassion.
if you want to be happy, practice compassion.  -- the dalai lama

-
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] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread Joshua Slive

On 12/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


>> still, i think even REMOTE_ADDR could be spoofed easily couldn't it?
>
> No, it is determined directly from the TCP/IP connection information which
> cannot be (easily) spoofed.  The Client-IP is simply a request header which
> the client (or proxy) completely controls.

ok.  i'm understanding correclty then - spoofing remote_addr would most likely
involve packet wrapping.  i'm not sure that would be consider 'hard' - but it
is indeed harder than setting headers.


I'm not sure what you mean by "packet wrapping".  But in general, it
is hard to lie about the source IP address if you want to get a
response from the server and are not on the same local network.  (It
is much easier if you are just doing a denial of service attack and
hence don't care if you ever see a response.)

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] compilation problem with mod_proxy_html

2006-12-07 Thread sharath reddy

By compiling of the mod_proxy_html (version 2.5.2) for apache2.0.50(on
LINUX) with the command  "apxs -c -I/usr/include/libxml2 -i
mod_proxy_html.c", I get the follow error:


[EMAIL PROTECTED] tmp]# /opt/apache2/bin/apxs -c -I/usr/include/libxml2 -i
mod_proxy_html.c /opt/apache2/build/libtool --silent --mode=compile gcc
-prefer-pic -O2 -pipe -mcpu=i586 -march=i686 -DAP_HAVE_DESIGNATED_INITIALIZER
-DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -pthread -I/opt/apache2/include  -I/opt/apache2/include
-I/opt/apache2/include  -I/usr/include/libxml2  -c -o mod_proxy_html.lo
mod_proxy_html.c && touch mod_proxy_html.slo
mod_proxy_html.c: In function `proxy_html_filter':
mod_proxy_html.c:802: `XML_PARSE_RECOVER' undeclared (first use in this
function)
mod_proxy_html.c:802: (Each undeclared identifier is reported only once
mod_proxy_html.c:802: for each function it appears in.)
mod_proxy_html.c:802: `XML_PARSE_NONET' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOBLANKS' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOERROR' undeclared (first use in this
function)
mod_proxy_html.c:803: `XML_PARSE_NOWARNING' undeclared (first use in this
function)
apxs:Error: Command failed with rc=65536

Can anybody help me to fix this problem.
Thanks,
Sharath


Re: [EMAIL PROTECTED] .htaccess mixed access based on client-ip/auth

2006-12-07 Thread ara . t . howard

On Thu, 7 Dec 2006, Joshua Slive wrote:


On 12/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


>> still, i think even REMOTE_ADDR could be spoofed easily couldn't it?
>
> No, it is determined directly from the TCP/IP connection information 
which
> cannot be (easily) spoofed.  The Client-IP is simply a request header 
which

> the client (or proxy) completely controls.

ok.  i'm understanding correclty then - spoofing remote_addr would most 
likely
involve packet wrapping.  i'm not sure that would be consider 'hard' - but 
it

is indeed harder than setting headers.


I'm not sure what you mean by "packet wrapping".  But in general, it
is hard to lie about the source IP address if you want to get a
response from the server and are not on the same local network.  (It
is much easier if you are just doing a denial of service attack and
hence don't care if you ever see a response.)


understood.  since the last post i've verified that sending the client_ip via

  curl --header "CLIENT_IP: an_internal_ip" uri

does not, in fact subvert the security.  i'm not sure the mechanism, but i can
set new http_* headers but not over-write any existing ones via a client - or
so it seems.

regards.

-a
--
if you want others to be happy, practice compassion.
if you want to be happy, practice compassion.  -- the dalai lama

-
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] VirtualHosts and cgi-bin problem

2006-12-07 Thread Mark Feather
A little background info

I have a default server (My Business) and 3 sponsored virtualhosts at the mo.

They are all working without errors, i can browse them all when punching in the 
respective domain names.

The default server has a cgi-bin called cgi-bin,  i have set things up so that 
this cgi-bin is only accessable by the default server and this works.

All scripts on the default server run without errors directly on the browsers 
address line and via links within the html source code on each page.

I have created another cgi-bin called cgi-bin2 and i want all sponsored vhosts 
to be able to access scripts within this cgi-bin and not the cgi-bin of the 
default server, this works to a point. The cgi-bin2 is not accessable by 
anybody logging in via an FTP session.

If i type in the address line the path of a cgi script in the cgi-bin2 using 
any of the sponsored domain names 
http://www.1stsponsoreddomainname.co.uk/cgi-bin2/footer.cgi , i get what i 
want, the expected html content prints to screen as expected.  If i try 
accessing a script in the default servers cgi-bin using the domain name of a 
sponsored domain name 
http://www.1stsponsoreddomainname.co.uk/cgi-bin/footer.cgi i get access denied, 
this is what i want.

If i add a link   into a html files 
source code of a sponsored domain name the expected content does not print to 
screen and the link is visible within the source code of the html file.   
Permissions are set to 755 on scripts and html files.

The reason for wanting this 2nd cgi-bin is so that i can offer simple scripts 
to the groups and youth clubs etc that use it, counters etc but more important 
a simple advert advertising the fact that i am hosting the clubs website for 
free with a link to my own website and business at the foot of every page.

There are no errors in the error logs to give me any clues!  i can deliberatly 
generate an error and the error does appear in the log files.

Can any body help me, what am i missing, doing wrong?

Here is a sample of my httpd.conf file:

# Default Server
NameVirtualHost *

 



 

ServerName www.mydomainname.co.uk:80

DocumentRoot /srv/www/htdocs

 



 

Options +Indexes +Includes +ExecCGI

 

AllowOverride none

Order allow,deny

Allow from All

deny from 69.222.16.9

deny from 62.49.6.157

deny from 193.28.178.61

 

ErrorDocument 401 /errors/error_document_401.html

ErrorDocument 403 /errors/error_document_403.html

ErrorDocument 404 /errors/error_document_404.html

 



 

ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

 



AllowOverride None

Options +ExecCGI +Includes -indexes

 

Order allow,deny

Allow from all

 

ErrorDocument 401 /errors/error_document_401.html

ErrorDocument 403 /errors/error_document_403.html

ErrorDocument 404 /errors/error_document_404.html

 



 



 

AllowOverride None

Options +ExecCGI +Includes -indexes

SetHandler cgi-script

 



 



 

##

 

# 1st Virtual Host



 

ServerName www.1stsponsoreddomainname.co.uk:80

DocumentRoot /www/SDCCWebsite/htdocs

CustomLog /www/SDCCWebsite/htdocs/log_files/access_log "%h %l %u %t \"%r\" %>s 
%b"

ErrorLog /www/SDCCWebsite/htdocs/log_files/error_log

 



 

Options -Indexes +Includes +ExecCGI

 

DirectoryIndex index.htm index.html homepage.html

 

AllowOverride None

Order allow,deny

Allow from All

 

ErrorDocument 401 /errors/error_document_401.html

ErrorDocument 403 /errors/error_document_403.html

ErrorDocument 404 /errors/error_document_404.html

 



 

ScriptAlias /cgi-bin2/ "/www/cgi-bin2/"

 



AllowOverride None

Options +ExecCGI +Includes -indexes

 

Order allow,deny

Allow from all

 

ErrorDocument 401 /errors/error_document_401.html

ErrorDocument 403 /errors/error_document_403.html

ErrorDocument 404 /errors/error_document_404.html

 



 



 

AllowOverride None

Options +ExecCGI +Includes -indexes

SetHandler cgi-script

 



 




Re: [EMAIL PROTECTED] Does Apache Restrict Multiple Concurrent Connections from one IP?

2006-12-07 Thread Jesse Ross
Does anyone know of a way to limit concurrent connections on the server 
side?  It looks like I might be able to stretch mod_evasive to get this 
behavior out of it, but I'd just as soon use something built-in if 
possible.  I'm running 1.3.27.


thanks,
Jesse Ross
Systems Administrator
Broad Institute of MIT and Harvard


Joshua Slive wrote:

On 12/1/06, JWM <[EMAIL PROTECTED]> wrote:

So my question is… is Apache httpd blocking the third request until 
one of

the other two requests completes?  Or is it in Windows or roadrunner some
place?  If it's in httpd, is there some config parameter that I could at
least perhaps bump it up to 3 or 4 concurrent requests?



Apache doesn't have any such restriction in its default config.

Most clients do restrict themselves to 3 connections per server.

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]



-
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] VirtualHosts and cgi-bin problem

2006-12-07 Thread Joshua Slive

On 12/7/06, Mark Feather <[EMAIL PROTECTED]> wrote:


If i add a link   into a html
files source code of a sponsored domain name the expected content does not
print to screen and the link is visible within the source code of the html
file.   Permissions are set to 755 on scripts and html files.


This problem has nothing to do with the cgi-bin in particular.  If the
SSI code is still in the file sent to the client, that means the
problem is with processing the SSI.  Are you sure you have configured
the vhosts to process the html files for SSI?  I don't see any
relevant AddHandler server-parsed .html.

Also: always use #include virtual in preference to #exec cgi, and make
sure you include a space before the final -->.

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] Windows installation error

2006-12-07 Thread Lawrence Weathers, Ph.D.
At the end of the windows install I get this message:

 

Installing the Apache2.2 service

The Apache2.2 service is successfully installed.

Testing httpd.conf

Errors reported here must be corrected before the service can be started.

(OS 10048)Only one usage of each socket address (protocol/network
address/port)

is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

Unable to open logs

Note the errors or messages above, and press the  key to exit.  13...

 

I am running windows XP which is fully updated.

 

What is it trying to tell me and what should I do about it?

 

Thanks

 

Larry

Lawrence Weathers, Ph.D.
Psychologist
6921 E Jamieson Rd.
Spokane WA 99223
509-448-6462, Fax 806 209 8854
HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]
HYPERLINK "mailto:[EMAIL PROTECTED]"www.caer.com, HYPERLINK
"http://www.adhdhelp.org"www.adhdhelp.org

In shallow waters, shrimps make fools of dragons.
Chinese Proverb 

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006
 


Re: [EMAIL PROTECTED] Windows installation error

2006-12-07 Thread William A. Rowe, Jr.
Lawrence Weathers, Ph.D. wrote:
> 
> (OS 10048)Only one usage of each socket address (protocol/network 
> address/port)
> is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> 
> What is it trying to tell me and what should I do about it?

That something else already has 0.0.0.0:80.  Probably, IIS?

-
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] help with location

2006-12-07 Thread Douglas WF Acheson
Hello,

I have configured a virtual server for scm.b.com to house my svn repository via 
web_dav (hope the lingo is okay).  I have it working and here is the config file
 

CustomLog logs/scmAccess.log dwfa
ErrorLog  logs/scmError.log

DocumentRoot "/usr/local/scm/svn/html"

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



DAV svn
SVNParentPath /usr/local/scm/svn/repositories

ServerName scm.b.com


I have adjusted my dns for the correct entries.   have created a few web pages 
to administer my svn repo and projects.   What I would like to do is have the 
admin pages accessible off the following url
http://scm.b.com/admin 

The problem is I am not sure how to achieve this.  Anyone have any ideas ...

Currently using
Apache 2.2.3 (64 bit custom built)
CentOS v4.4


Thx in advance
dwfa



-
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] Windows installation error

2006-12-07 Thread Lawrence Weathers, Ph.D.
How do you tell what has what port?
And, if it is IIS, how do you turn it off or get Apache to use another port?

Thanks

Larry

Lawrence Weathers, Ph.D.
Psychologist
6921 E Jamieson Rd.
Spokane WA 99223
509-448-6462, Fax 806 209 8854
[EMAIL PROTECTED]
www.caer.com, www.adhdhelp.org

In shallow waters, shrimps make fools of dragons.
Chinese Proverb 

-Original Message-
From: William A. Rowe, Jr. [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 07, 2006 8:24 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Windows installation error

Lawrence Weathers, Ph.D. wrote:
> 
> (OS 10048)Only one usage of each socket address (protocol/network
address/port)
> is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down
> 
> What is it trying to tell me and what should I do about it?

That something else already has 0.0.0.0:80.  Probably, IIS?

-
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]


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006
 


-
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] Going crazy over mod_deflate

2006-12-07 Thread Cabbar Duzayak

Before I start, I am using apache 2.0.52 with PHP 4.3.9.

In my .htaccess, I have a rewrite rule that rewrites /bb.flv as
/bb.php, and this bb.php file reads a flv file and outputs it. In the
PHP file, I am specifying content-type as video/x-flv and
content-length, however mod_deflate still compresses this, and also
removes the content-length header from the response, and this messes
up the flv player!...

I tried everything, simply everything, and yet could not get
mod_deflate to by-pass this file. For some reason, it does not see
this content as video/x-flv, and treats is as regular text And,
when I disable the mod_deflate filter, everything returns back to
normal. BTW, I am not doing any compression on the PHP side!...

Things I tried are:

+ AddOutputFilterByType DEFLATE text/html text/plain text/xml

+ SetEnvIfNoCase Request_URI \
 \.(?:gif|jpe?g|png|flv)$ no-gzip dont-vary

I tried putting these in , ,  and global
context, and none of them worked. Additionally, I tried to rewrite the
type using the rewriterule as:
RewriteRule ^bb.flv /bb.php [T=video/x-flv]

I also tried ForcedType, AddTpe, AddOutputFilter (by extension), etc. etc.

But, still the output is compressed. And, the response headers I am seeing are:

content-disposition: inline; filename=123.flv
Vary: Accept-Encoding
Content-Encoding: gzip
Keep-Alive: timeout=5, max=96
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: video/x-flv

Can you please tell what I am missing here and/or is there anyway I
can by-pass the mod_deflate compression?

TIA.

-
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] Changing DocumentRoot Doesn't Work

2006-12-07 Thread Norman Peelman
- Original Message - 
From: "Gaming Mouse" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, December 07, 2006 4:28 AM
Subject: Re: [EMAIL PROTECTED] Changing DocumentRoot Doesn't Work


> 
> > Sounds to me like Apache can't find the httpd.conf file for some
> reason... there should be a command switch to force it to look at a specific
> place:
> >
> > httpd -V
> >
> > should tell you what config that it has been compiled to look for - make 
> > sure
> it's in the right place or,
> >
> > httpd -f "path:/to/config/filename.conf"
> >
> > will start Apache with said config file.
> >
> >
> > Norm
> > ---
> >   
> 
> Hey Norm,
> 
> Thanks for the reply.  Here is the output of httpd -V.  Can you let me 
> know if it is indeed not finding httpd.conf and, if not, how I can fix 
> the problem permanently?  Do you recommend adding the -f switch info to 
> the shortcut that I use to start httpd.exe?
> 
> C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -V
> Server version: Apache/2.2.3
> Server built:   Jul 27 2006 16:49:49
> Server's Module Magic Number: 20051115:3
> Server loaded:  APR 1.2.7, APR-Util 1.2.7
> Compiled using: APR 1.2.7, APR-Util 1.2.7
> Architecture:   32-bit
> Server MPM: WinNT
>   threaded: yes (fixed thread count)
> forked: no
> Server compiled with
>  -D APACHE_MPM_DIR="server/mpm/winnt"
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=128
>  -D HTTPD_ROOT="/apache"
>  -D SUEXEC_BIN="/apache/bin/suexec"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error.log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
> 
> 
>  


Looks like you got this working?...


Norm
---
FREE Avatar hosting at www.easyavatar.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] Apache quit on me all of a sudden?

2006-12-07 Thread Evan Platt

At 08:34 AM 12/7/2006, you wrote:

At 10:33 PM 12/6/2006, you wrote:

That'll run the first httpd found in your PATH. On a plain vanilla
MacOSX installation, that is the httpd 1.3.33 that Apple supplies.
However, you must have something else there since 1.3.33 doesn't
recognize the -k flag.


AFAIK, I've removed the Apple version. I'm using 2.2.3.



When you run /Library/Apache2/bin/httpd -l, is mod_ssl.c in the list?


Hmm.. No.
Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c



If not, is there a mod_ssl.so in the modules subdirectory? Do you
have a LoadModule line for that?


Yep: 776 mod_ssl.so
LoadModule ssl_module modules/mod_ssl.so


Reinstalled 2.2.3 from source.

Now, error is httpd: Syntax error on line 327 of 
/Library/Apache2/conf/httpd.conf: Cannot load 
/Library/Apache2/modules/mod_access.so into server: cannot create 
object file image or add library

mod_access.so is missing.

I ./configured with

--enable-mods-shared=most --prefix=/Library/Apache2 --enable-ssl


Is there a better configure options I should be using? 



-
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 quit on me all of a sudden?

2006-12-07 Thread Sander Temme


On Dec 7, 2006, at 11:19 PM, Evan Platt wrote:

Now, error is httpd: Syntax error on line 327 of /Library/Apache2/ 
conf/httpd.conf: Cannot load /Library/Apache2/modules/mod_access.so  
into server: cannot create object file image or add library

mod_access.so is missing.


Mod_access has been renamed to mod_authz_host. See:

http://httpd.apache.org/docs/2.2/upgrading.html

When you install a new version over an existing installation, the  
existing configuration files are preserved, incompatibilities and all.


S.

--
[EMAIL PROTECTED]http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




smime.p7s
Description: S/MIME cryptographic signature


Re: [EMAIL PROTECTED] Windows installation error

2006-12-07 Thread Steve Swift

To tell what program is using port 80 I would use "Active Ports" which I
probably downloaded from http://www.protect-me.com/freeware.html

When you have IIS Installed, you have an extra Icon in "Control Panel" ->
"Administrative Tools" called "Internet Information Service" (or something
like that)

On 08/12/06, Lawrence Weathers, Ph.D. <[EMAIL PROTECTED]> wrote:


How do you tell what has what port?
And, if it is IIS, how do you turn it off or get Apache to use another
port?

Thanks

Larry

Lawrence Weathers, Ph.D.
Psychologist
6921 E Jamieson Rd.
Spokane WA 99223
509-448-6462, Fax 806 209 8854
[EMAIL PROTECTED]
www.caer.com, www.adhdhelp.org

In shallow waters, shrimps make fools of dragons.
Chinese Proverb

-Original Message-
From: William A. Rowe, Jr. [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 07, 2006 8:24 PM
To: users@httpd.apache.org
Subject: Re: [EMAIL PROTECTED] Windows installation error

Lawrence Weathers, Ph.D. wrote:
>
> (OS 10048)Only one usage of each socket address (protocol/network
address/port)
> is normally permitted.  : make_sock: could not bind to address
0.0.0.0:80
> no listening sockets available, shutting down
>
> What is it trying to tell me and what should I do about it?

That something else already has 0.0.0.0:80.  Probably, IIS?

-
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]


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.15/579 - Release Date: 12/7/2006



-
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]





--
Steve Swift
http://www.swiftys.org.uk