[users@httpd] How to proxy based on post string value
Apache 2.4 Is this possible to do? Use Case: An Apache web server receives a POST web requests. If the POST request “body” contains a particular string value I want to proxy the post request to a different web server. The response from that web server will be sent back to the original request. If the original web request POST body does not contain a particular string value then I will send a 200 response back. Thanks, Lance Campbell
[users@httpd] Enhancement Request
Apache MPM Workers REQUEST: Please change your worker parameter naming convention in regards to MAX. Example: Parameter1 MaxParameter1 Parameter2 MaxParameter2 Why? I completely misunderstood the difference between ThreadLimit and ThreadsPerChild. I have wasted over 8 hours researching the difference. Try this out: ThreadsPerChild32 MaxThreadsPerChild 40 It is obvious what the relationship is between parameters with and without the prefix “max”. Compare these ThreadLimit and ThreadsPerChild. Following my proposed standard makes the relationship obvious. Thanks Lance
Re: [users@httpd] MPM worker - ThreadLimit and ThreadsPerChild
I just figured it out. I found a document that explains just terms. ThreadsPerChild is the STARTING number of threads per process. ThreadLimit is the MAX threads that should be created by a child process. So when calculating ServerLimit you should always use the worst case formula. ServerLimt = MaxRequestWorkers divided by ThreadLimit . ThreadLimit could equal ThreadsPerChild. Or ThreadLimit could be greater than ThreadsPerChild. Thanks. On 8/24/18, 2:46 PM, "Eric Covener" wrote: On Fri, Aug 24, 2018 at 3:42 PM Campbell, Lance wrote: > > Apache 2.4 > > MPM Worker > > The relationship between ThreadLimit and ThreadsPerChild is not very clear. These are some questions I have. > > > > Why would you ever want ThreadLimit bigger than ThreadsPerChild? Obscure: So you can raise ThreadsPerChild during a graceful restart > If you do want it bigger then how do you determine how much bigger it should be? Just by how much you'd do the above. > If ThreadLimit is bigger than ThreadsPerChild should you then use ThreadLimit instead of ThreadsPerChild to calculate the ServerLimit? Yes, but in practice you just don't need a ThreadLimit higher than ThreadsPerChild. -/- I would say decide on MaxRequestWorkers first. Then decide on the mix between threads and processes you want (ThreadsPerChild) which then dictates both ThreadLimit and ServerLimit. - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] MPM worker - ThreadLimit and ThreadsPerChild
Apache 2.4 MPM Worker The relationship between ThreadLimit and ThreadsPerChild is not very clear. These are some questions I have. 1. Why would you ever want ThreadLimit bigger than ThreadsPerChild? 2. If you do want it bigger then how do you determine how much bigger it should be? 3. If ThreadLimit is bigger than ThreadsPerChild should you then use ThreadLimit instead of ThreadsPerChild to calculate the ServerLimit? #3 Example: Normally ServerLimit = MaxRequestWorkers divided by ThreadsPersChild If ThreadLimit is larger than ThreadsPerChild then should you do this: ServerLimit = MaxRequestWorkers divided by ThreadLimit Thanks, Lance
[users@httpd] Crashed
Summary: With the below settings apache crashed on me. The error log told me it reached MaxRequestWorkers. It suggested increasing the size. To remedy the situation I increased MaxRequestWorkers to 10,. Then I was fine. Based on the documentation it says that you are supposed to divide the MaxRequestWorkers by ThreadsPerChild to get to ServerLimit. I don’t recall how many running processes I had at the time of the crash. I was in a panic mode. I have not had apache crash on me in so long I was not really prepared. Now I know I should have got a listing of the number of processes in use by apache. I should have also taken a snapshot of the memory usage by each process. Questions: 1. Is there a way to have apache write out info like this during a crash to the error log: 1. Number of processes it currently is running. 2. How much memory per process it is using. 3. How much memory it was using at that moment it crashed. 1. To tell how much memory apache is using, calculate the resident memory of each process? Is this correct? 2. Is there something wrong with my configuration below? Httpd.conf: ServerLimit 250 StartServers 10 MinSpareThreads 75 MaxSpareThreads 250 ThreadLimit 64 ThreadsPerChild 32 MaxRequestWorkers 8000 MaxConnectionsPerChild 500 Apache info: Server version: Apache/2.4.6 (CentOS) Server built: Jun 27 2018 13:48:59 Server's Module Magic Number: 20120211:24 Server loaded: APR 1.4.8, APR-UTIL 1.5.2 Compiled using: APR 1.4.8, APR-UTIL 1.5.2 Architecture: 64-bit Server MPM: worker threaded: yes (fixed thread count) forked: yes (variable process count) Error log: [mpm_worker:error] [pid 31849:tid 140027731249280] AH00287: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting [Wed Aug 22 03:40:40.893477 2018] [mpm_worker:error] [pid 31849:tid 140027731249280] AH00286: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting [Wed Aug 22 03:41:16.264059 2018] [mpm_worker:notice] [pid 31849:tid 140027731249280] AH00296: caught SIGWINCH, shutting down gracefully Thanks, Lance
[users@httpd] Apache 2.4 order mpm issue
Apache 2.4 CentOS 7 Apache has numerous times today hung on me. It is fully patched and the server has been freshly rebooted. In the error_log I get this message: [Sat Jan 20 13:55:04.194452 2018] [mpm_worker:error] [pid 22574:tid 139937880922240] AH00287: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting [Sat Jan 20 13:55:24.215998 2018] [mpm_worker:error] [pid 22574:tid 139937880922240] AH00286: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting These are my apache configuration values: ServerLimit 180 StartServers 10 MaxRequestWorkers 4500 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 I get this for the memory and running processes. Apache Processes: 18 Apache Memory Usage (MB): 505.531 Average Proccess Size (MB): 28.0851 Any help would be greatly appreciated. A server with 4G of memory. Lance
Re: [users@httpd] RE: Apache 2.4 worker mpm memory climbing no new processes
Thanks, That makes a lot of sense. You explained that very well. Lance From: "Houser, Rick" <rick.hou...@jackson.com> Reply-To: "users@httpd.apache.org" <users@httpd.apache.org> Date: Tuesday, January 9, 2018 at 11:45 AM To: "users@httpd.apache.org" <users@httpd.apache.org> Subject: [users@httpd] RE: Apache 2.4 worker mpm memory climbing no new processes This is from memory many years ago, so minor details might be off: If you have requests that take different amounts of memory to handle, the larger requests will in turn bump up the memory used by a thread pool, while releasing that memory pack to the thread pool when the request finishes. Requests will keep pulling from the thread pools, so another large request on that same thread won’t bump up your usage. However, if you have something extreme, like a request that takes 10MB to process (and your other requests are processing in 1MB), you may very well bump up your overall memory consumption by around 9MB or so with that request. And if you then process another 10MB request on a different thread, that would bump it up by another 9MB. By the time you get the large request in all 75 threads, you would be using 750MB (250MB per child), and the thread related memory would stop growing. If these large requests are very infrequent, and not something you can segregate out (to send to an HTTPD with fewer threads and overall lower transaction volume), you might want to consider more smaller thread workers and a limit to the number of requests a given worker will process, so that process would be recycled before all the threads hit that big response. Rick Houser Web Engineer From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Tuesday, January 09, 2018 12:28 To: users@httpd.apache.org Subject: [users@httpd] Apache 2.4 worker mpm memory climbing no new processes EXTERNAL EMAIL Apache 2.4 Worker MPM I am using this configuration for Worker MPM: ServerLimit 90 StartServers10 MaxRequestWorkers 2048 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 Apache has created 12 processes. Apaches memory consumption slowly increases but never goes down. Currently Apache is using 423M and the average Process size is 35.3M. When I look at the Apache access log I see an enormous number of requests coming across my terminal. Should I change my settings? I am concerned that at some point I am going to run out of memory. Since I started writing this email Apache is now up to 426M and the average process size is at 35.5M. Thanks, Lance
[users@httpd] Apache 2.4 worker mpm memory climbing no new processes
Apache 2.4 Worker MPM I am using this configuration for Worker MPM: ServerLimit 90 StartServers10 MaxRequestWorkers 2048 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 Apache has created 12 processes. Apaches memory consumption slowly increases but never goes down. Currently Apache is using 423M and the average Process size is 35.3M. When I look at the Apache access log I see an enormous number of requests coming across my terminal. Should I change my settings? I am concerned that at some point I am going to run out of memory. Since I started writing this email Apache is now up to 426M and the average process size is at 35.5M. Thanks, Lance
[users@httpd] URL rewrite rule not working the way I thought it should
I have a URL: http://test.webservices.illinois.edu/bob/calendar/list/7 I want to rewrite the URL internally so apache sees it as the following tomcat mod_jk URL: http://test.webservices.illinois.edu/calendar/list/7 BUT I don't want to redirect. I want apache to see the URL internally as the above. So the URL in the persons browser still show bob. I used the below RewriteRule but it gives me a 404: RewriteRule ^/bob/calendar/(.*) /calendar/$1 [L] If I change the rule to the below it then works but the URL in the browser is changed to exclude bob. I believe the R is telling the browser to redirect: RewriteRule ^/bob/calendar/(.*) /calendar/$1 [R,L] Is there a different command other than [L] I should use to tell apache to rewrite the URL internally? Or is my issue related to the fact that I am pointing to a URL that goes to mod_jk? Thanks, Lance Campbell Software Architect/Project Manager/DBA Web Services at Public Affairs 217.333.0382
RE: [users@httpd] URL rewrite rule not working the way I thought it should
PT is the answer. Thanks, Lance Campbell Software Architect/Project Manager/DBA Web Services at Public Affairs 217.333.0382 -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Thu 3/3/2011 3:18 PM To: users@httpd.apache.org Subject: Re: [users@httpd] URL rewrite rule not working the way I thought it should Is there a different command other than [L] I should use to tell apache to rewrite the URL internally? Or is my issue related to the fact that I am pointing to a URL that goes to mod_jk? Try PT - 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] RewriteCond how to set variable
I have the following RewriteCond. I put numbers in front of each line for reference: 1) RewriteCond %{QUERY_STRING} !XSL=NONE [NC] 2) RewriteCond %{QUERY_STRING} calId=([0-9]+) [NC] 3) RewriteCond %{QUERY_STRING} skinId=([0-9]+) [NC] 4) RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%1?skinId=%2 http://test.webservices.illinois.edu/calendar/list/%251?skinId=%252 [L] I just learned that when you use %1 and %2 in line 4 it will only reference the last RewriteCond. So in line 4 the %1 comes from line 3 but the %2 is blank. I actually wanted the values from line 2 3 to be inserted into line 4. How do you set a local variable in line 2 and 3 so that in line 4 I can reference them? Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382
RE: [us...@httpd] Re: RewriteCond how to set variable
Thanks for your response. I get the following error message: RewriteCond: unknown flag 'E' What I used: RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{QUERY_STRING} calId=([0-9]+) [E=CALID:%1] RewriteCond %{QUERY_STRING} skinId=([0-9]+) [E=SKINID:%1] RewriteRule ^/calendar/list http://test.webservices.illinois.edu/calendar/list/%{CALID}?skinId=%{SKI NID} [L] Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382 -Original Message- From: Andrew Schulman [mailto:and...@alumni.utexas.net] Sent: Tuesday, December 21, 2010 9:41 AM To: users@httpd.apache.org Subject: [us...@httpd] Re: RewriteCond how to set variable I have the following RewriteCond. I put numbers in front of each line for reference: 1) RewriteCond %{QUERY_STRING} !XSL=NONE [NC] 2) RewriteCond %{QUERY_STRING} calId=([0-9]+) [NC] 3) RewriteCond %{QUERY_STRING} skinId=([0-9]+) [NC] 4) RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%1?skinId=%2 http://test.webservices.illinois.edu/calendar/list/%251?skinId=%252 [L] I just learned that when you use %1 and %2 in line 4 it will only reference the last RewriteCond. So in line 4 the %1 comes from line 3 but the %2 is blank. I actually wanted the values from line 2 3 to be inserted into line 4. How do you set a local variable in line 2 and 3 so that in line 4 I can reference them? This isn't too pretty. RewriteCond %{QUERY_STRING} calId=([0-9]+) [NC] RewriteRule .* - [E=calId:%1] RewriteCond %{QUERY_STRING} skinId=([0-9]+) [NC] RewriteRule .* - [E=skinId:%1] RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{calId} . RewriteCond %{skinId} . RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%{calId}?skinId=%{ski nId} [L] (I'm not sure if your original RewriteRule came through correctly - I think I've interpreted it right.) I'm not 100% sure about the use of %{calId} and %{skinId} in the substitution string of the RewriteRule. I think it's right, but try it. - 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
RE: [us...@httpd] Re: RewriteCond how to set variable
I did find a work around by doing the follow: RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{QUERY_STRING} skinId=([0-9]+)(.*)calId=([0-9]) [NC] RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%3?skinId=%1 [L,R=301] RewriteCond %{QUERY_STRING} !XSL=NONE [NC] RewriteCond %{QUERY_STRING} calId=([0-9]+)(.*)skinId=([0-9]) [NC] RewriteRule ^/calendar http://test.webservices.illinois.edu/calendar/list/%1?skinId=%3 [L,R=301] Thanks, Lance Campbell Software Architect/DBA/Project Manager Web Services at Public Affairs 217-333-0382 -Original Message- From: Andrew Schulman [mailto:and...@alumni.utexas.net] Sent: Tuesday, December 21, 2010 12:13 PM To: users@httpd.apache.org Subject: [us...@httpd] Re: RewriteCond how to set variable My email client displayed what you wanted me to insert incorrectly. I put the code in correctly but it still does not work. I added R=301 to the end so that it would redirect so I could check the apache logs. Good debugging trick. - 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] Redirection problem with dynamic url parameters
I need to redirect: https://illinois.edu/blog/view?blogId=291 To http://illinois.edu/db/view/291 The key is that 291 may be any number in both the from and to URLs. Can someone point me in the proper direction on how to redirect these types of URLs? Thanks, Lance Campbell Project Manager/Software Architect/DBA Web Services at Public Affairs 217-333-0382
[us...@httpd] RewriteRule problem
I want to do convert the below dynamic url to a static url: http://acme.com/abc?id=123 To: http://acme.com/efg/123 I have tried the following: RewriteRule ^/abc?id=(.*) /efg/$1 I get an error in my apache log: File does not exist: /apacheDocs/http/acme.com/abc I have the Rewrite Engine on. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu http://webservices.uiuc.edu/
RE: [us...@httpd] RewriteRule problem
So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] It still does not work. I am still getting the file not found. I feel like I am closer. Thanks, Lance -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Wednesday, March 18, 2009 3:40 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule problem On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance la...@illinois.edu wrote: RewriteRule ^/abc?id=(.*) /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString -- Eric Covener cove...@gmail.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
RE: [us...@httpd] RewriteRule problem
RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] I have tried the above but it still gives me a file not found for abc. RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc /efg/%1 [L] This also did not work. RewriteCond %{QUERY_STRING} ^id=(.*) RewriteRule ^/abc /efg/%1 This also failed to work. Any other thoughts. -Original Message- From: Anthony J. Biacco [mailto:abia...@formatdynamics.com] Sent: Wednesday, March 18, 2009 4:04 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule problem abc isn't part of your query Make it: RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -Original Message- From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Wednesday, March 18, 2009 3:03 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule problem So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] It still does not work. I am still getting the file not found. I feel like I am closer. Thanks, Lance -Original Message- From: Eric Covener [mailto:cove...@gmail.com] Sent: Wednesday, March 18, 2009 3:40 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule problem On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance la...@illinois.edu wrote: RewriteRule ^/abc?id=(.*) /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString -- Eric Covener cove...@gmail.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 - 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
[EMAIL PROTECTED] error log problem with SSL
Apache 2.0.x Within our virtual host we have the line: ErrorLog /var/log/httpd/some_file_name What we are noticing is that Tomcat requests through mod_jk are showing up within this log as 404 errors when doing SSL. Why is this? Is there something within our configuration that is telling apache to check for the existence of a file before the request goes to tomcat? I did not think that was possible. It is important to note that the content is rendering from Tomcat. I just don't want the error messages in my logs. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu http://webservices.uiuc.edu/
[EMAIL PROTECTED] MPM 2.2
I am using apache 2.2 with MPM under a very heavy load. Could someone send me some example settings I should use to improve performance for MPM? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu http://webservices.uiuc.edu/
[EMAIL PROTECTED] Mod_jk load balance logging
I use mod_jk to load balance some java applications. When I do a Unix tail on the log that mod_jk generates I don't see anything that indicates which instance of an application is being accessed: Example: [Thu Jul 10 12:29:36 2008] pc webtools.uiuc.edu 0.001352 [Thu Jul 10 12:29:36 2008] pc webtools.uiuc.edu 0.001251 Is there something I can do to display which instance of pc is being accessed? Ideally it would be nice to see if I am accessing server 1 or server 2. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu My e-mail address has changed to [EMAIL PROTECTED]
[EMAIL PROTECTED] Apache RedirectMatch or Virtual Host Help Needed
I am completely stumped on how to solve a particular problem on Apache 2.2. I have a virtual host for all variations of uiuc.edu for the campus web server redirecting to Illinois.edu. It works great. Below is some of the virtual host info I am using. VirtualHost *:80 ServerName uiuc.edu ServerAlias www.uiuc.edu www.uiuc.net uiuc.net www.uiuc.org uiuc.org campus.webtools.uiuc.edu RedirectMatch (/(.*))?$ http://illinois.edu/$2 /VirtualHost I then copied the above and modified it so that I could redirect all content going to www.illinois.edu http://www.illinois.edu/ and redirect it to illinois.edu. This is where the problem resides. When a user goes to http://www.illinois.edu/index.html they will be redirected to http://illinois.edu http://illinois.edu/ /index.html. Great! But none of the JavaScript includes on the index web page that start with www.illinois.edu http://www.illinois.edu/ will render. If the JavaScript include starts with either uiuc.edu or illinois.edu then they render fine. My virtual host for www.illinois.edu looks like: VirtualHost *:80 ServerName www.illinois.edu ServerAlias www.illinois.edu RedirectMatch (/(.*))?$ http://illinois.edu/$2 /VirtualHost Any thoughts on how I can resolve this issue? In order to get this to currently work, I put www.illinois.edu http://www.illinois.edu/ in the Server Alias section in the Illinois.edu virtual host. Now if someone comes to the home page with www.illinois.edu http://www.illinois.edu/ they stay within that domain. Ideally I would like to redirect them to Illinois.edu. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu My e-mail address has changed to [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] Apache RedirectMatch or Virtual Host Help Needed
The solution is: RewriteCond %{REQUEST_FILENAME} !\.(js) [NC] RewriteCond %{HTTP_HOST} !^illinois\.edu [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) http://illinois.edu/$1 [L,R=301] I pieced this solution together from a couple of different examples that solved unrelated problems. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu My e-mail address has changed to [EMAIL PROTECTED] -Original Message- From: Campbell, Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:31 PM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] Apache RedirectMatch or Virtual Host Help Needed Actually we have confirmed that the redirect of content works in all browsers for HTML content. But for redirecting of JavaScript only IE7 seems to have an issue. It won't display the .js files. Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu My e-mail address has changed to [EMAIL PROTECTED] -Original Message- From: Krist van Besien [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 2:13 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] Apache RedirectMatch or Virtual Host Help Needed On Tue, Jun 24, 2008 at 21:07, Campbell, Lance [EMAIL PROTECTED] wrote: I then copied the above and modified it so that I could redirect all content going to www.illinois.edu and redirect it to illinois.edu. This is where the problem resides. When a user goes to http://www.illinois.edu/index.html they will be redirected to http://illinois.edu/index.html. Great! But none of the JavaScript includes on the index web page that start with www.illinois.edu will render. If the JavaScript include starts with either uiuc.edu or illinois.edu then they render fine. Are the Javascript files that are included loaded by the browser? Are they present where the browser expects them? Have a look in the log of your webserver. I can also suggest using the excellent Firebug add on for Firefox, which can show you a lot of what happens when you load a page. Krist -- [EMAIL PROTECTED] [EMAIL PROTECTED] Bremgarten b. Bern, Switzerland -- A: It reverses the normal flow of conversation. Q: What's wrong with top-posting? A: Top-posting. Q: What's the biggest scourge on plain text email discussions? - 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: [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 URL: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 URL: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] Emergency Web Server Configuration
OS: Linux Red Hat Apache: 2.2.x I am setting up a dedicated apache web server in order to push out emergency web pages in the event of an emergency on campus. The content that would be pushed out would be static content only consisting of a few dozen web pages. I have verified that the number of possible open files is over a million in the OS. I have also made sure to shut off HTACCESS. Are there any other technical items I should be identifying or evaluating in order to make sure we could handle an obscene number of web hits? Would it be a necessity to have two or more network cards running in conjunction together? Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu My e-mail address has changed to [EMAIL PROTECTED]
[EMAIL PROTECTED] More than one SSL Certificate/Virtual Host
Apache 2.2 I want to get two virtual hosts to work on my install of apache: www.a.edu http://www.a.edu/ and www.b.edu http://www.b.edu/ . I already have one certificate working fine for SSL. How do I get the other to work? I created two certificates. The first one worked fine. I added the second virtual host and got the following error: Starting apache 2.2.8[Thu Apr 17 09:46:25 2008] [warn] _default_ VirtualHost overlap on port 443, the first has precedence Apache/2.2.8 mod_ssl/2.2.8 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide the pass phrases. Server www.a.edu:443 (RSA) Enter pass phrase: OK: Pass Phrase Dialog successful. I thought if I copied the SSL virtual host and changed the file reference to the new ssl.key and ssl.crt files it would work. I also changed the server name. Is there something I am missing? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] Mod Rewrite and Mod JK
I am finding that mod_rewrite does not get triggered is a URL happens to map to Mod JK. Is there a way to give first dibs to mod_rewrite? I have mod_rewrite loaded before mod_jk. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] Mod Disk Cache Problem
Apache 2.2.8 I am using mod disk cache to cache some dynamic content. It works great if there are NO parameters passed to the requested URL. Working Example: http://qa.webtools.uiuc.edu/rssManager/imageList/30/1 But if I pass any parameters at all the URL is not cashed. Example: http://qa.webtools.uiuc.edu/rssManager/imageList/30/1?abc=123 What should I do? Below are my configuration settings: CacheRoot /some/location/qa CacheEnable disk /rssManager/article/ CacheEnable disk /rssManager/imageCurrent/ CacheEnable disk /rssManager/imageList/ CacheEnable disk /rssManager/imagePast/ CacheEnable disk /rssManager/js/ CacheEnable disk /rssManager/newList/ CacheDefaultExpire 3600 CacheIgnoreNoLastMod On CacheDefaultExpire 600 CacheMaxExpire 3600 Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] Mod rewrite - can it tell if a requested file exists
Apache 2.2 I know it is possible to chain mod rewrite rules. Is it possible with mod rewrite to test for the existence of a requested file? Example: Requested URL: http://acme.com/abc/123 Sudo Code: If the URL matches /abc/* Then rewrite the URL to /zzz/abc/123 if the file exists then done (leave the requested file as /zzz/abc/123) else if it does not exist then rewrite the URL to /xxx/abc/123 then done Is this possible? If not then how could you do this as fast as possible without creating a mod for apache? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] Authentication Module
Is there an apache authentication module that does the following? 1) Within the apache configuration a user would identify what URLs are secure. 2) When a user tries to access content that is secured for the first time the module redirects the user to a common authentication server. The original requested URL is attached to the end of the redirected URL. 3) The user then sees a web authentication page that they authenticate through. Once they authenticate the authentication web server redirects the user back to the original URL. 4) The apache module then knows that they have authenticated because of cookies that are set with particular values, etc... I have seen this type of approach used at a few large companies where authentication needs to be handled only through one central service/department. Then other departments can develop web sites/applications without having to know the details about the authentication process behind the seen. Is there currently a module like this? If not would this be something that the apache project might be interested in? The current modules look like they trigger either OS or browser authentication windows. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
FW: [EMAIL PROTECTED] mod_cache
I made a mistake. The following: Now if I sent the following URL requests then items 3 and 4 would be removed from the cache: http://acme.com/ghi/asasd/dd/ Should have been: Now if I sent the following URL requests then items 3 and 4 would be removed from the cache: http://acme.com/cleanCache/ghi/asasd/dd/ Sorry, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu From: Campbell, Lance [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 15, 2008 9:51 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] mod_cache Apache 2.2.x I would like to request that mod_cache have an additional parameter added to it. Example: CacheCleanRequest /cleanCache/ If you want to remove items from the cache so that they can be refreshed by a later request you simply pre append the URL that was provided to the parameter CacheCleanRequest. Example: CacheCleanRequest /cleanCache/ CacheEnable disk /abc/ CacheEnable disk /def/ CacheEnable mem /ghi/ If I were to request the following URLs they would be cached by mod_cache: 1) http://acme.com/abc/123.html 2) http://acme.com/def/454/3443/aaa.html 3) http://acme.com/ghi/asasd/dd/bbb.html 4) http://acme.com/ghi/asasd/dd/ccc.html Now if I sent the following URL request then item 2 above would be removed from the cache: http://acme.com/cleanCache/def/454/3443/aaahtml Now if I sent the following URL requests then items 3 and 4 would be removed from the cache: http://acme.com/ghi/asasd/dd/ I know you have a mechanism in place to clear a cache entry based on adding attributes to a headers requests. This just seems to be a much simpler approach to clearing cached content. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] mod_cache
Apache 2.2.x I would like to request that mod_cache have an additional parameter added to it. Example: CacheCleanRequest /cleanCache/ If you want to remove items from the cache so that they can be refreshed by a later request you simply pre append the URL that was provided to the parameter CacheCleanRequest. Example: CacheCleanRequest /cleanCache/ CacheEnable disk /abc/ CacheEnable disk /def/ CacheEnable mem /ghi/ If I were to request the following URLs they would be cached by mod_cache: 1) http://acme.com/abc/123.html 2) http://acme.com/def/454/3443/aaa.html 3) http://acme.com/ghi/asasd/dd/bbb.html 4) http://acme.com/ghi/asasd/dd/ccc.html Now if I sent the following URL request then item 2 above would be removed from the cache: http://acme.com/cleanCache/def/454/3443/aaahtml Now if I sent the following URL requests then items 3 and 4 would be removed from the cache: http://acme.com/ghi/asasd/dd/ I know you have a mechanism in place to clear a cache entry based on adding attributes to a headers requests. This just seems to be a much simpler approach to clearing cached content. Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
RE: [EMAIL PROTECTED] mod_cache
Is there a header string I could pass in the newer version of mod_cache/mod_disk_cache that would cause it to refresh the cache with new content for the requested URL? In version 2.0.59 there does not seem to be a header string that will do this. I got the idea that passing the following header string would do that: Cache-Control: max-age=0 After looking at the code I found that this is not the case. Using this string in the header simply tells mod_cache to not check the cache for the requested content. So the next time mod_cache gets a request for the same URL without the above header string it will give back the old cached content. I am really looking for a way to tell mod_cache, hey, refresh the cache with new content for the requested URL. Thanks for any help you can give me. Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 1:53 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] mod_cache Yes you did. http://issues.apache.org/bugzilla/show_bug.cgi?id=19441 Many of the developers actively participate on this list also, so there is no need to post to the dev list. If you believe you have found a problem you should search Bugzilla for reports of problems similar to what you reported. -ascs De : Campbell, Lance [mailto:[EMAIL PROTECTED] Envoyé : mercredi 9 janvier 2008 07:44 À : users@httpd.apache.org Objet : [EMAIL PROTECTED] mod_cache ![endif]-- I think I found an issue with mod_cache. Where do I go to post a question to the development group for this mod? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu - 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: [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 URL: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_cache
You mentioned applying the fixes from 2.2 to 2.0. Would I get the source code for mod_cache.so and mod_disk_cache.so from the 2.2 project, put it in the proper directories on apache 2.0 and the rebuild? Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 10:42 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_cache Both the max-age=0 and the no-cache request directives should force an end-to-end reload. As I said earlier, there is a bug that causes Apache to ignore the Cache-Control request directives. That bug is fixed in 2.2.x, or you could apply the 2.0.x patch I referred to. Just in case you did not see it, I also replied to your original thread RE: [EMAIL PROTECTED] mod_disk_cache -ascs -Message d'origine- De : Campbell, Lance [mailto:[EMAIL PROTECTED] Envoyé : mercredi 9 janvier 2008 16:33 À : users@httpd.apache.org Cc : Axel-Stephane SMORGRAV Objet : RE: [EMAIL PROTECTED] mod_cache Is there a header string I could pass in the newer version of mod_cache/mod_disk_cache that would cause it to refresh the cache with new content for the requested URL? In version 2.0.59 there does not seem to be a header string that will do this. I got the idea that passing the following header string would do that: Cache-Control: max-age=0 After looking at the code I found that this is not the case. Using this string in the header simply tells mod_cache to not check the cache for the requested content. So the next time mod_cache gets a request for the same URL without the above header string it will give back the old cached content. I am really looking for a way to tell mod_cache, hey, refresh the cache with new content for the requested URL. Thanks for any help you can give me. Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 1:53 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] mod_cache Yes you did. http://issues.apache.org/bugzilla/show_bug.cgi?id=19441 Many of the developers actively participate on this list also, so there is no need to post to the dev list. If you believe you have found a problem you should search Bugzilla for reports of problems similar to what you reported. -ascs De : Campbell, Lance [mailto:[EMAIL PROTECTED] Envoyé : mercredi 9 janvier 2008 07:44 À : users@httpd.apache.org Objet : [EMAIL PROTECTED] mod_cache ![endif]-- I think I found an issue with mod_cache. Where do I go to post a question to the development group for this mod? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu - 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: [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 URL: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 URL: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_cache
Ascs, I put your changes in and everything is working great. I just wish that we could use Apache 2.2. Thanks for all of your help, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: Axel-Stephane SMORGRAV [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 11:15 AM To: users@httpd.apache.org Subject: RE: [EMAIL PROTECTED] mod_cache Look at http://issues.apache.org/bugzilla/show_bug.cgi?id=19441 There you will find a patch against 2.0.59 that fixes this particular problem. If you read all the comments on that PR you will see that there will be no back-port from 2.2.x, which is a pity since a patch exists. If you really feel like it, you may re-open the PR and bug some developer into accepting to include it into a future release of 2.0.x. In that case I will add a comment to the effect that I have had that patch in production for a few months and it works fine... -ascs -Message d'origine- De : Campbell, Lance [mailto:[EMAIL PROTECTED] Envoyé : mercredi 9 janvier 2008 18:03 À : users@httpd.apache.org Cc : Axel-Stephane SMORGRAV Objet : RE: [EMAIL PROTECTED] mod_cache You mentioned applying the fixes from 2.2 to 2.0. Would I get the source code for mod_cache.so and mod_disk_cache.so from the 2.2 project, put it in the proper directories on apache 2.0 and the rebuild? Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu - 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: [EMAIL PROTECTED] from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [EMAIL PROTECTED] mod_disk_cache
Joshua, I thought this was working but it is not. This is my sinario: 1) I have a Java servlet that serves up some content. I put a display in the code so I can confirm when it gets called. I also put some code in the servlet to display header parameters that it receives. 2) I clear my disk cache for apache. 3) I restart apache. 4) I hit the servlet through a browser. The log file shows that it was hit. I also notice that there is files in the apache disk cache. 5) I then hit the servlet again through a browser. Nothing comes through the log file. So the servlet never received the request but the page came up. So apache is caching the file. 6) I now trigger another servlet that sends the same URL that I put manually into the browser. This request has the parameter Cache-Control: max-age=0 added to the header. The servlet I have been talking to shows that it receives a request. The header shows the following name value pairs: header name=Cache-Control header value=max-age=0 header name=pragma header value=no-cache header name=user-agent header value=Java/1.6.0_02 header name=host header value=qa.webtools.uiuc.edu header name=accept header value=text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 header name=connection header value=keep-alive header name=content-length header value=0 When I go to the original servlet again I find the content is still the cached content. It is as though the disk cache module let my request go on through but it did not delete/refresh the data. What should I do? Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Monday, January 07, 2008 11:27 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_disk_cache On Jan 7, 2008 12:12 PM, Campbell, Lance [EMAIL PROTECTED] wrote: Joshua, I don't understand what you are saying. Is there some command parameter you can send to htcacheclean or is there a special way of formatting the requested cached URL that will cause it to be refreshed? Just make an HTTP request to the server for the targeted URL with a Cache-Control: max-age=0 header. Joshua. - 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: [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 URL: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_cache
I think I found an issue with mod_cache. Where do I go to post a question to the development group for this mod? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
RE: [EMAIL PROTECTED] mod_disk_cache
Joshua, I don't understand what you are saying. Is there some command parameter you can send to htcacheclean or is there a special way of formatting the requested cached URL that will cause it to be refreshed? Since I am caching Tomcat dynamic content I use the following parameters when setting up the mod_disk_cache: CacheRoot /a/b/c/d/e CacheSize 256 CacheEnable disk /servletName/ CacheDefaultExpire 3600 CacheDirLevels 2 CacheDirLength 10 CacheIgnoreCacheControl off CacheIgnoreHeaders None CacheIgnoreNoLastMod On CacheDefaultExpire 600 CacheMaxExpire 3600 Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Monday, January 07, 2008 10:46 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_disk_cache On Jan 7, 2008 12:59 AM, Campbell, Lance [EMAIL PROTECTED] wrote: httpd-2.0.59 Does mod_disk_cache support a mechanism that one can request a particular URL to have its content refreshed? Sure, if you send the appropriate Cache-Control headers on your request, you should force mod_cache to get the data from the back-end. (But I haven't tested this myself.) Joshua. - 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: [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 URL: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_disk_cache
It works! Thanks! They really need to add that to the apache documentation. Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joshua Slive Sent: Monday, January 07, 2008 11:27 AM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] mod_disk_cache On Jan 7, 2008 12:12 PM, Campbell, Lance [EMAIL PROTECTED] wrote: Joshua, I don't understand what you are saying. Is there some command parameter you can send to htcacheclean or is there a special way of formatting the requested cached URL that will cause it to be refreshed? Just make an HTTP request to the server for the targeted URL with a Cache-Control: max-age=0 header. Joshua. - 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: [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 URL: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_disk_cache
httpd-2.0.59 Does mod_disk_cache support a mechanism that one can request a particular URL to have its content refreshed? I know you can delete the entire disk cache root and it will then refresh the content. But is there a way to just request that a particular URL be refreshed within the cached content? I thought I would create multiple disk caches and then delete the cached files in the disk cache I wanted to refresh. But it looks like a virtual host can only have one disk cache in it. Is this true? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu
[EMAIL PROTECTED] Installing apache 2.0.59 on RH 5 EM64T
I get the below error when trying to install apache 2.0.59 on RH 5 EM64T. At the bottom I have also included my configure command and parameters. Any thoughts? /usr/lib/libexpat.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[2]: *** [htpasswd] Error 1 make[2]: Leaving directory `/services/ows/applications/src/httpd-2.0.59/support' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/services/ows/applications/src/httpd-2.0.59/support' make: *** [all-recursive] Error 1 config command: ./configure --enable-mods-shared=most --enable-ssl --enable-ssl=shared --prefix=/usr/local/apache --enable-so Has anyone had this issue? Thanks, Lance Campbell Project Manager/Software Architect Web Services at Public Affairs University of Illinois 217.333.0382 http://webservices.uiuc.edu