[us...@httpd] Re: Running php scripts outside of document root

2009-05-25 Thread Nicholas Sherlock
Lyle Wincentsen wrote: Thanks for your help, that solved the problem. To answer your question as to why I don't want my php scripts to be in the document root tree, it is a potential security issue. I would rather not allow anyone to peruse my source code as they may be

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

2009-05-25 Thread Nguyen Tien Duong
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

[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

[us...@httpd] Order of Proxy matching

2009-05-25 Thread Evan Champion
Hi, Can anyone advise of the order in which Proxy statements matching the same URL are matched? I am using SetEnvIf to set a variable that is saved later in the access_log. Sometimes there is a more specific match and a less specific match for the same URL, e.g.: Proxy

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

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 Nguyen Tien Duong
Dear, Thanks a lot for your input. I have done the check and figure out that i am missing of some header files ,e.g bits/mman.h where the mentioned constant MAP_ANON is defined. The configure step continues and i hit the error of could not detect 64 bit integer type . Below is the log

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

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 Nguyen Tien Duong
Thank you for the input. I have written a simple program to print out the size of some basic types int main() { printf(sizeof (void*) is %d\n , sizeof(void*)); printf(sizeof (int) is %d\n , sizeof(int)); printf(sizeof (long) is %d\n , sizeof(long));

Re: [us...@httpd] Order of Proxy matching

2009-05-25 Thread André Warnier
Evan Champion wrote: Hi, Can anyone advise of the order in which Proxy statements matching the same URL are matched? I am using SetEnvIf to set a variable that is saved later in the access_log. Sometimes there is a more specific match and a less specific match for the same URL, e.g.: Proxy

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

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 Nguyen Tien Duong
Dear, I try to run configure with the verbose flag, but it did not print out any additional information. Investigate the long chunk of the file configure content does not help either. I did not see any .c file generated during and after the process. Things are kinda like a black box. Any

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:

Re: [us...@httpd] ............ :( Plz help

2009-05-25 Thread Igor Cicimov
You can try mod_rwrite in the virtual host section: RewriteEngine On RewriteCond %{HTTP_HOST} ^acmework\.acmeblog\.com$ RewriteRule ^/(acme)$ http://%1/$1?area=ind Igor On Mon, May 25, 2009 at 3:13 PM, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: Hi SPECF Apache :

Re: [us...@httpd] virtual hosts and rewrite rules

2009-05-25 Thread Krist van Besien
On Fri, May 22, 2009 at 10:30 AM, Tom Evans tevans...@googlemail.com wrote: If you have vhosts, then the default vhost is not what is specified outside of the vhost tags, it is the first defined vhost in your conf file. This means that any vhost level directives (like RewriteRules, ProxyPass,

Re: [us...@httpd] Order of Proxy matching

2009-05-25 Thread Eric Covener
On Mon, May 25, 2009 at 3:01 AM, Evan Champion ev...@nortel.com wrote: Hi, Can anyone advise of the order in which Proxy statements matching the same URL are matched? I am using SetEnvIf to set a variable that is saved later in the access_log.  Sometimes there is a more specific match and a

Re: [us...@httpd] Order of Proxy matching

2009-05-25 Thread Krist van Besien
On Mon, May 25, 2009 at 11:28 AM, André Warnier a...@ice-sa.com wrote: Evan Champion wrote: My observation is that the matches are done in reverse order of appearance in the configuration, i.e. in this example, a request to http://server.example.com/ will match the http://*.example.com/* rule

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

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 Nguyen Tien Duong
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