Re: [us...@httpd] Shared Memory Size?

2009-07-01 Thread Prasanna Ram Venkatachalam
> > >> Does anybody know about the size spec of the shared memory? > > If you are using Linux, check */proc/sys/kernel/shmmax*. That tells the max size a single shared memory can have. If you want more change it and reboot If you use solaris, check */usr/sbin/sysdef | grep SHMMAX* to get the curr

Re: [us...@httpd] mod_cache alternative?

2009-07-01 Thread Jonathan Zuckerman
On Wed, Jul 1, 2009 at 3:26 PM, André Warnier wrote: > Developer wrote: >> >> Hello, >> mod_cache is very bad for caching. > > That's a bad way to start, if you really need help. > Read this first : > http://catb.org/esr/faqs/smart-questions.html > >> For some unknown reason (for me) > > that is pr

Re: [us...@httpd] Shared Memory Size?

2009-07-01 Thread Lyle Wincentsen
You can read about sessions in any number of good books. Here is a link to O'reilly's "PHP In a Nutshell" on safari books online as an example. http://my.safaribooksonline.com/0596100671/phpnut-CHP-10 In a nutshell (pun intended), session (cookies) let you save information from each client that yo

Re: [us...@httpd] rewrite and proxy question

2009-07-01 Thread Igor Cicimov
One way to preserve the host name is putting UseCanonicalName On in the virtual host but not sure if it helps in your case. On Wed, Jul 1, 2009 at 10:56 PM, K. Clair wrote: > Hi, I realized I forgot to mention we are running apache 2.0. On Tue, June > 30, 2009 8:52 pm, Igor Cicimov wrote: > Wh

Re: [us...@httpd] mod_cache alternative?

2009-07-01 Thread André Warnier
Developer wrote: Hello, mod_cache is very bad for caching. That's a bad way to start, if you really need help. Read this first : http://catb.org/esr/faqs/smart-questions.html For some unknown reason (for me) that is probably more accurate it caches script (all request are mod_rewrite in o

[us...@httpd] mod_cache alternative?

2009-07-01 Thread Developer
Hello, mod_cache is very bad for caching. For some unknown reason (for me) it caches script (all request are mod_rewrite in one php script) and not request URI response of server. One requested URI should generate one server response, but mod_cache see all as same php script (WRONG, I think that u

Re: [us...@httpd] Shared Memory Size?

2009-07-01 Thread Brian Kim
Hi. I am a beginner of Apache. When you say, "what "sessions" are for", does that mean I can create sessions to make more shared memory? Do you have any sample code for sessions? Does anybody know what the limit of shared memory is exactly? Thanks. On Wed, Jul 1, 2009 at 5:47 PM, Lyle Wincentse

Re: [us...@httpd] Shared Memory Size?

2009-07-01 Thread Lyle Wincentsen
I don't know what the limit on shared memory would be, but it seems like what you're describing is exactly what "sessions" are for. On Wed, Jul 1, 2009 at 3:51 PM, Brian Kim <09su.resea...@gmail.com> wrote: > Hi all > > Due to some fellows' advice, I got to know we cannot use a global > variable

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread William A. Rowe, Jr.
Jiří Eichler wrote: > Ok, "AddDefaultCharset off" added to httpd.conf, charset spec in header > disappeared in both cases, It must be enough for this time. As regards > file uploads, I really want to use utf-8 for multilingual support and I > believe that it is technically possible even on Windows.

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread Jiří Eichler
Ok, "AddDefaultCharset off" added to httpd.conf, charset spec in header disappeared in both cases, It must be enough for this time. As regards file uploads, I really want to use utf-8 for multilingual support and I believe that it is technically possible even on Windows. It just needs to config

[us...@httpd] Shared Memory Size?

2009-07-01 Thread Brian Kim
Hi all Due to some fellows' advice, I got to know we cannot use a global variable as we do in a single program. Now I use an example, "mod_example_ipc.c" to use the shared memory. The shared memory is containing user specific data for each ip accessing to my proxy server. I was wondering about

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread André Warnier
Jiří Eichler wrote: I didn't program MediaWiki, but on Wikipedia it seems to be working well. I just realize that we haven't solved that problem with charset, I have just changed charset sent by php ... you're right with "double encoding" to utf-8, Apache/php think that it is something else and

Re: [us...@httpd] Problem getting the sample perl script to run on the apache http server

2009-07-01 Thread Chintan Kachhi
Oops, I just realized that I had not changed the path in the perl file to reflect the path to where my perl.exe was located. I changed it to #!c:/Perl/bin/perl.exe and now it works. Thanks. On Wed, Jul 1, 2009 at 1:57 PM, André Warnier wrote: > Chintan Kachhi wrote: > >> Hello, >> I just insta

Re: [us...@httpd] Problem getting the sample perl script to run on the apache http server

2009-07-01 Thread André Warnier
Chintan Kachhi wrote: Hello, I just installed apache http server version 2.2 on my local machine. I copied a sample hello world perl script under the cgi-bin directory of the Apache installation folder and named it first.pl. When I put http://hostnamein the web browser url, it shows that the serv

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread Jiří Eichler
I didn't program MediaWiki, but on Wikipedia it seems to be working well. I just realize that we haven't solved that problem with charset, I have just changed charset sent by php ... you're right with "double encoding" to utf-8, Apache/php think that it is something else and encode it once more

[us...@httpd] Problem getting the sample perl script to run on the apache http server

2009-07-01 Thread Chintan Kachhi
Hello, I just installed apache http server version 2.2 on my local machine. I copied a sample hello world perl script under the cgi-bin directory of the Apache installation folder and named it first.pl. When I put http://hostnamein the web browser url, it shows that the server is installed, since i

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread André Warnier
Jiří Eichler wrote: Man you are incredible. I had to leave that part.. ... (I removed the part about the idiot however..) ... I didn't think that it is problem with php, it ran on Linux well. It runs under Linux well, probably /only/ because the locale of the process under which Apache + PHP i

Re: [us...@httpd] Wrong charset convert SOLVED

2009-07-01 Thread Jiří Eichler
Man you are incredible. Thank you. And I'm idiot because I searched for mistake where it wasn't :) I had just to use: $target_path = utf8_decode($target_path); Maybe it will be also possible change somehow php.ini, I'm going to look at it. I didn't think that it is problem with php, it ran on

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread André Warnier
Jiří Eichler wrote: .. I just checked your on-line example. I used Firefox 3.1, with the "HttpFox" add-on (recommended). This shows exactly what the browser is sending to the server. In this case, the form does a POST, in the "multipart/form-data" encoding. I sent a small test file, which I create

[us...@httpd] Re: stopping uri that have a Url in them--solved

2009-07-01 Thread bf...@free-man.net
found I had proxy enabled. I don't need proxy so I have disabled it. bf...@free-man.net sent the following on 6/30/2009 1:26 PM: > I have a major attach of URL being sent: > http://mydomain.com/http://someurl.com > so the http:/someurl.com is requested from my apache server. > any way I can stop

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread Jiří Eichler
I understand you very well. I can try to look at Apache source codes and recompile it with some changes. Otherwise, thank you for your time. I'm trying to resolve this for three days :-D Have a nice day, Jiri Eichler André Warnier wrote: Jiří Eichler wrote: ... Hi. I do not know the answer pr

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread André Warnier
Jiří Eichler wrote: ... Hi. I do not know the answer precisely either. But I know enough to tell you that in such matters, you must be /extremely/ careful in interpreting what is really going on, at each level. Just as a stupid example : when you look at a log file, you must know : - has the pro

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread Jiří Eichler
another correction, IE setting HAS effect, but it changes nothing, still not working. Sorry for confusing. sorry, validator sends of course: GET /slo%C5%BEka.png HTTP/1.1 I select wrong TCP session, sorry :) All of them, Opera, IE, and even http://validator.w3.org, it sends: GET /check?uri=http

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread Jiří Eichler
sorry, validator sends of course: GET /slo%C5%BEka.png HTTP/1.1 I select wrong TCP session, sorry :) All of them, Opera, IE, and even http://validator.w3.org, it sends: GET /check?uri=http%3A%2F%2Fsgo.happyforever.com%2Fslo%C5%BEka.png&charset=%28detect+automatically%29&doctype=Inline&group=0 H

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread Jiří Eichler
All of them, Opera, IE, and even http://validator.w3.org, it sends: GET /check?uri=http%3A%2F%2Fsgo.happyforever.com%2Fslo%C5%BEka.png&charset=%28detect+automatically%29&doctype=Inline&group=0 HTTP/1.1 IE setting "send URLs as UTF-8" has no effect André Warnier wrote: Jiří Eichler wrote: Than

Re: [us...@httpd] prg with rewrite_map does not seem to be working, maybe a bug

2009-07-01 Thread Eric Covener
On Wed, Jul 1, 2009 at 10:04 AM, Ali Jawad wrote: > Well I did apply the changes mentioned and prg started returning results. > However [P,L] now does not work the server throws > > > Request Error (invalid_request) Proxy loaded? Did your rewrite Proxy to a well-formed URL? RewriteLog might hekp

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread André Warnier
Jiří Eichler wrote: Thank you André for perfect explanation. Web browser converts 'ž' to %C5%BE, which are two bytes, Which web browser ? And if it is IE, then is the "send URLs as UTF-8" box checked in "Internet options" ? And what happens if you uncheck it ? (Will read the rest of your pos

Re: [us...@httpd] Only to suggest

2009-07-01 Thread André Warnier
Ricardo, your question is not one that can be really answered, not without studying your load, your applications, etc... You do not even define what yopu mean by "high load". Check these : http://httpd.apache.org/docs/2.2/misc/perf-tuning.html http://httpd.apache.org/docs/2.2/mpm.html (and the

Re: [us...@httpd] prg with rewrite_map does not seem to be working, maybe a bug

2009-07-01 Thread Ali Jawad
Well I did apply the changes mentioned and prg started returning results. However [P,L] now does not work the server throws Request Error (invalid_request) Your request could not be processed. Request could not be handled This could be caused by a misconfiguration, or possibly a malformed

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread Jiří Eichler
Thank you André for perfect explanation. Web browser converts 'ž' to %C5%BE, which are two bytes, this is 'sent' to Apache: GET /slo%C5%BEka.png HTTP/1.1. Apache in "Not found" message translate it to /složka.png, what is probably right - ASCII. But it seems really strange :) I don't think that O

Re: [us...@httpd] Only to suggest

2009-07-01 Thread ricardo figueiredo
Hi, I only asked for a opinion. Ricardo On Wed, Jul 1, 2009 at 10:34 AM, Eric Covener wrote: > On Wed, Jul 1, 2009 at 9:02 AM, ricardo > figueiredo wrote: > > Hi all, > > > > Anyone ?? > > Try it and see. > > > -- > Eric Covener > cove...@gmail.com > > -

Re: [us...@httpd] Only to suggest

2009-07-01 Thread Eric Covener
On Wed, Jul 1, 2009 at 9:02 AM, ricardo figueiredo wrote: > Hi all, > > Anyone ?? Try it and see. -- Eric Covener cove...@gmail.com - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.a

Re: [us...@httpd] mod_fastcgi is ignoring -init-start-delay ??

2009-07-01 Thread Eric Covener
On Wed, Jul 1, 2009 at 9:10 AM, Matt wrote: > * How come all these static FastCGI applications are all starting > together at the same time? How come they aren't scatter That parm looks like it applies to subsequent daemons of the same fcgi, e.g. when you want 5 foo.fcgi at startup to cope wi

Re: [us...@httpd] mod_fastcgi is ignoring -init-start-delay ??

2009-07-01 Thread André Warnier
Hi. Since all that you mention below seems quite fastcgi-specific, would you not get better help on a fastcgi-oriented list ? Matt wrote: I have this line in my /etc/httpd/conf/httpd.conf file: Include conf.d/*.conf and my fast cgi configuration looks like this: [r...@server ~]# cat /etc/ht

[us...@httpd] mod_fastcgi is ignoring -init-start-delay ??

2009-07-01 Thread Matt
I have this line in my /etc/httpd/conf/httpd.conf file: Include conf.d/*.conf and my fast cgi configuration looks like this: [r...@server ~]# cat /etc/httpd/conf.d/mod_fastcgi.conf ScriptAlias /fcgi-bin "/var/www/fcgi-bin/" # FastCGI # If the module hasn't been loaded yet, deny access to the dir

Re: [us...@httpd] Only to suggest

2009-07-01 Thread ricardo figueiredo
Hi all, Anyone ?? Ricardo On Tue, Jun 30, 2009 at 4:47 PM, ricardo13 wrote: > > Hi all, > > I would like to hear the opinion of you. > I've built a web cluster using reverse proxy with 6 backend and 1 frontend. > > These machines has the same configuration: > - a processor Intel(R) Core(TM)2 Q

Re: [us...@httpd] rewrite and proxy question

2009-07-01 Thread K. Clair
Hi, I realized I forgot to mention we are running apache 2.0. On Tue, June 30, 2009 8:52 pm, Igor Cicimov wrote: > What about this: > > DirectoryIndex index.cfm this was already set in our server config. > > Or maybe changing the redirect to > > RewriteRule ^/(.*)$ http://192.168.0.100/$1 [P] > thi

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread André Warnier
ejir...@seznam.cz wrote: This is that problem: http://sgo.happyforever.com/test.php (http://sgo.happyforever.com/test.php) Try it please, thanks. Původní zpráva Od: Předmět: [us...@httpd] Wrong charset convert Datum: 01.7.2009 00:03:06 -

Re: [us...@httpd] Wrong charset convert

2009-07-01 Thread ejirkae
This is that problem: http://sgo.happyforever.com/test.php (http://sgo.happyforever.com/test.php) Try it please, thanks. Původní zpráva Od: Předmět: [us...@httpd] Wrong charset convert Datum: 01.7.2009 00:03:06 - I have install