[us...@httpd] mod_rewrite documentation DR: slash for backslash

2009-06-27 Thread Kristof Zelechovski
mod_rewrite http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#quoting
- Apache HTTP Server documentation says :

special characters in TestString and Substitution strings can be escaped
(that is, treated as normal characters without their usual special meaning)
by prefixing them with a slash ('\') character

It should rather say:

special characters in TestString and Substitution strings can be escaped
(that is, treated as normal characters without their usual special meaning)
by prefixing them with a backslash ('\') character

Please fix.



[us...@httpd] doc DR: Broken link to CGI specification

2009-06-27 Thread Kristof Zelechovski
 
http://validator.w3.org/checklink?check=Checkhide_type=allsummary=onuri=
http%3a%2f%2fhttpd.apache.org%2fdocs%2f2.0%2fenv.html W3C Link Checker:
http://httpd.apache.org/docs/2.0/env.html says:

errorLine: 97 http://cgi-spec.golux.com/

Status: 500 Can't connect to cgi-spec.golux.com:80 (connect: No route to
host)

This is a server side problem. Check the URI. 

 

I recommend importing that thing from Web archive (it is down since
http://web.archive.org/web/*/http:/cgi-spec.golux.com/  2006) and hosting
a copy at Apache (since Apache httpd explicitly refers to it).
Alternatively Apache documentation could cease to mention the existence of
the document as a separate specification because this specification is
private - it is not endorsed by any standards body.  My efforts to contact
the domain owner have been fruitless so far.

Cheers,

Chris

image001.png

RE: [us...@httpd] doc DR: Broken link to CGI specification

2009-06-27 Thread Kristof Zelechovski
The missing content is hosted At
http://hoohoo.ncsa.illinois.edu/cgi/env.html CGI Environment Variables.

 

  _  

From: Kristof Zelechovski [mailto:giecr...@stegny.2a.pl] 
Sent: Saturday, June 27, 2009 11:26 PM
To: users@httpd.apache.org
Subject: [us...@httpd] doc DR: Broken link to CGI specification

 

 
http://validator.w3.org/checklink?check=Checkhide_type=allsummary=onuri=
http%3a%2f%2fhttpd.apache.org%2fdocs%2f2.0%2fenv.html W3C Link Checker:
http://httpd.apache.org/docs/2.0/env.html says:

errorLine: 97 http://cgi-spec.golux.com/

Status: 500 Can't connect to cgi-spec.golux.com:80 (connect: No route to
host)

This is a server side problem. Check the URI. 

 

I recommend importing that thing from Web archive (it is down since
http://web.archive.org/web/*/http:/cgi-spec.golux.com/  2006) and hosting
a copy at Apache (since Apache httpd explicitly refers to it).
Alternatively Apache documentation could cease to mention the existence of
the document as a separate specification because this specification is
private - it is not endorsed by any standards body.  My efforts to contact
the domain owner have been fruitless so far.

Cheers,

Chris

image001.png

RE: [us...@httpd] Use of NoProxy without a DNS lookup

2009-05-29 Thread Kristof Zelechovski
Hi Dave,
Requiring local applications to use raw IP numbers is rather extreme.  You
should have a DNS running on the LAN; local hosts can be referred to by
name, DNS or no DNS, and your proxy would send these request to nowhere.
IMHO,
Chris

-Original Message-
From: David Vaughan [mailto:david.vaug...@satemail.com] 
Sent: Thursday, May 28, 2009 12:46 PM
To: users@httpd.apache.org
Subject: [us...@httpd] Use of NoProxy without a DNS lookup

Hi there.

I have an Apache server (2.2.11 running on Windows XP) which acts as a
forward proxy for a small network connected via a slow IP link to a main
proxy server.

The network has an intranet so the NoProxy command is used to prevent
sending these requests to the main proxy.  However this causes Apache to
do a DNS lookup for every request.  After re-reading the documentation I
changed the NoProxy subnet address for a dotted IP address (e.g.
192.168.0.20), but this still causes a DNS lookup.

The proxy section of the config file is:
ProxyRemote * http://my.ipaddress.com:8080
Noproxy 192.168.0.0/16
  
Proxy *
Order Deny,Allow
Deny from all
Allow from 192.168
/Proxy

What I'd like is for Apache to only process the NoProxy command if the
host name is in a dotted address format - anything else can be sent to
the main proxy server as this will not be on the local intranet.


Any suggestions gratefully received

Thanks
Dave Vaughan



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



RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-27 Thread Kristof Zelechovski
Well, the log you have got is not complete, in that the crucial work is
delegated to a subshell that is not being logged.  What is interesting here
is the preceding line starting with a '+'.  You have snipped that one,
unfortunately.
Try changing ac_configure and friends to '/bin/sh -x ...'; you shall have to
figure out where it is defined and how to tweak it.  I suggest setting SHELL
to '/bin/sh -x'.  Also, bash has a way to set command-line options through
an environment variable; if everything else fails, you can also use this
method.
And remember to start clean each time!
BTW, there are free bulletin board (Web clipboard) services that allow you
to paste clipboard text for instant viewing via HTTP.  Most IRC channels
link to such a service.  You could use one of them as well.
Chris

-Original Message-
From: Nguyen Tien Duong [mailto:duong...@fsoft.com.vn] 
Sent: Wednesday, May 27, 2009 6:29 AM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Unable to run ./configure when install apache
http server.Error: decision on anonymous shared memory allocation method
failed


Dear 

Thanks a lot for your suggestion. I have done as instructed and got more
information.

However looking at the data printed on the screen, i have not quite got the
cause of the problem. That is no code that checks for size of or the content
of generated conftest.c

I copy the content of the log, I am sorry for the inconvenient of the long
chunk of data since the network policy at the company does not allow Upload
file feature.

Step to perform 

sh -x configure --prefix=/home1/apache --enable-so --with-included-apr

Output 
...
checking for mmap that can map /dev/zero... no
decision on anonymous shared memory allocation method... 4.4BSD-style mmap()
via MAP_ANON
decision on namebased memory allocation method... mmap() via POSIX.1
[snip]
+ eval 'ac_val=$BASH'
++ ac_val=/bin/sh
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_ARGC'
++ ac_val=3
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_ARGV'
++ ac_val=--with-included-apr
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_LINENO'
++ ac_val=0
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_SOURCE'
++ ac_val=configure
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_VERSINFO'
++ ac_val=3
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$BASH_VERSION'
++ ac_val='3.2.25(1)-release'
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$CATALINA_HOME'
++ ac_val=/home1/tomcat
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$COLORTERM'
++ ac_val=gnome-terminal
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DBUS_SESSION_BUS_ADDRESS'
++
ac_val=unix:abstract=/tmp/dbus-GXbh0B8HqR,guid=0c501b4abca3bd3810fd6fb6a6704
000
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DESKTOP_SESSION'
++ ac_val=default
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DESKTOP_STARTUP_ID'
++ ac_val=
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DIRSTACK'
++ ac_val='~/setups/apache_2.2.11/linux/httpd-2.2.11/srclib/apr'
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DISPLAY'
++ ac_val=:0.0
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$DUALCASE'
++ ac_val=1
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$ECHO_C'
++ ac_val=
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$ECHO_N'
++ ac_val=-n
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$ECHO_T'
++ ac_val=
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$EUID'
++ ac_val=0
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$GDMSESSION'
++ ac_val=default
+ case $ac_val in
+ for ac_var in '`(set) 21 | sed -n
'\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`'
+ eval 'ac_val=$GDM_XSERVER_LOCATION'
++ ac_val=local
+ case $ac_val in
+ for ac_var in 

RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-26 Thread Kristof Zelechovski
Run sh -x configure; this generates lots of data on stderr.  Identify the
failure point somewhere near the end; the text of conftest.c should be above
that.
HTH,
Chris

-Original Message-
From: Nguyen Tien Duong [mailto:duong...@fsoft.com.vn] 
Sent: Tuesday, May 26, 2009 4:40 AM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Unable to run ./configure when install apache
http server.Error: decision on anonymous shared memory allocation method
failed


Dear 

Thanks again for your suggestion.

I have performed quite thoroughly in the content of configure file and found
no where there is a check for sizeof int, void*, long long etc. 

My observation is the configure generates a file called conftest.c for each
test and then delete it immediately once the test is over. Thus i have no
chance looking at the generated content . It comes a little bit worse since
i do not know the check point to put some debugging statement. 

Regards,



Kristof Zelechovski wrote:
 
 Look for 'long long' within ./configure.
 Chris
 
 
 
 -
 
 
 

-- 
View this message in context:
http://www.nabble.com/Unable-to-run-.-configure-when-install-apache-http-ser
ver.Error%3A-decision-on-anonymous-shared-memory-allocation-method-failed-tp
23702056p23716058.html
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 URL:http://httpd.apache.org/userslist.html for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
  from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


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



[us...@httpd] Internal server error for script

2009-05-25 Thread Kristof Zelechovski
When I SetHandler cgi-script in .htaccess, I get Internal server error;
when I SetHandler application/x-httpd-cgi, the script runs fine.  What may
the reason be?

Chris



RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-25 Thread Kristof Zelechovski
Apparently, Apache code needs either MAP_ANON defined or some special
semantics for { mmap ('/dev/zero'); }; check the documentation for mmap what
that would be, and check the documentation for your OS why it is not
provided.
HTH,
Chris

-Original Message-
From: Nguyen Tien Duong [mailto:duong...@fsoft.com.vn] 
Sent: Monday, May 25, 2009 8:50 AM
To: users@httpd.apache.org
Subject: [us...@httpd] Unable to run ./configure when install apache http
server.Error: decision on anonymous shared memory allocation method failed


Dear all.

I am trying to install apache http server version 2.2.11 for centos 5.

During the first step, i hit the error of  Error: decision on anonymous
shared memory allocation method failed  and not able to proceed further. I
would like to seek the help and really appreciate if anyone could give some
pointers to the problem.

The details is as followed.

1. Run the command 
[r...@localhost httpd-2.2.11]# ./configure --prefix=/home1/apache
--enable-so --with-included-apr  a.out

Error on the console  is 

/root/setups/apache_2.2.11/linux/httpd-2.2.11/srclib/apr/configure:Error:
decision on anonymous shared memory allocation method failed

2. The output a.out content is 

checking for MAP_ANON in sys/mman.h... no
checking for /dev/zero... yes
checking for mmap that can map /dev/zero... no
configure failed for srclib/apr




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



RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-25 Thread Kristof Zelechovski
These lines are all wrong; they should report 4,1,4,4,8.  You need the exact
invocation of the compiler and the source code to figure out what went wrong
this time.  These should be in config.log.  Then repeat the offending
compilation by hand and see what you get and why.
Chris

-Original Message-
From: Nguyen Tien Duong [mailto:duong...@fsoft.com.vn] 
Sent: Monday, May 25, 2009 10:33 AM
To: users@httpd.apache.org
Subject: RE: [us...@httpd] Unable to run ./configure when install apache
http server.Error: decision on anonymous shared memory allocation method
failed


checking size of void*... 0
checking size of char... 0
checking size of int... 0
checking size of long... 0
checking size of short... 0
checking size of long long... 0
configure: error: could not detect a 64-bit integer type
configure failed for srclib/apr

=
 
The config.log remains the same.




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



RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-25 Thread Kristof Zelechovski
Tell configure to be more verbose or to dump debugging information.  Also
check for any intermediate .c files created by configure; the latest one
should contain the problem.
Chris


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



RE: [us...@httpd] Unable to run ./configure when install apache http server.Error: decision on anonymous shared memory allocation method failed

2009-05-25 Thread Kristof Zelechovski
Look for 'long long' within ./configure.
Chris



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



RE: [us...@httpd] Internal server error for script

2009-05-25 Thread Kristof Zelechovski
In addition, /var/log/httpd-suexec.log says: cannot get docroot
information.

 

  _  

From: Kristof Zelechovski [mailto:giecr...@stegny.2a.pl] 
Sent: Monday, May 25, 2009 8:50 AM
To: users@httpd.apache.org
Subject: [us...@httpd] Internal server error for script

 

When I SetHandler cgi-script in .htaccess, I get Internal server error;
when I SetHandler application/x-httpd-cgi, the script runs fine.  What may
the reason be?

Chris