Re: [us...@httpd] Rewrite rule rewriting unexpectedly
On Mon, Apr 19, 2010 at 5:59 PM, Eric Covener wrote: > On Mon, Apr 19, 2010 at 5:44 PM, Glenn Gillis wrote: > > Would any rewriting gurus out there care to speculate why the rewrite > rule: > > > > "RewriteRule /blog http://spotlight.wordpress.com/"; > > > > would cause the image URL: > > > > " > alt="what we do" width="500" height="125" />" > > > > to redirect to the spotlight.wordpress.com webpage? > > > > Running Apache 2.2.9 on FreeBSD 6.x. > > If you want to match exactly "/blog" and not that string inside the > URL, you need to anchor it with e.g. ^/blog$ > > -- > Eric Covener > cove...@gmail.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: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > > because! regular expressions are by definition greedy, which means they will match the largest possible string of characters. If you don't give it boundaries like the start and end string delimiters it just sucks up everything that it can.
Re: [us...@httpd] Rewrite rule rewriting unexpectedly
On Mon, Apr 19, 2010 at 5:44 PM, Glenn Gillis wrote: > Would any rewriting gurus out there care to speculate why the rewrite rule: > > "RewriteRule /blog http://spotlight.wordpress.com/"; > > would cause the image URL: > > " alt="what we do" width="500" height="125" />" > > to redirect to the spotlight.wordpress.com webpage? > > Running Apache 2.2.9 on FreeBSD 6.x. If you want to match exactly "/blog" and not that string inside the URL, you need to anchor it with e.g. ^/blog$ -- Eric Covener cove...@gmail.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: 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] Rewrite rule rewriting unexpectedly
Would any rewriting gurus out there care to speculate why the rewrite rule: "RewriteRule /blog http://spotlight.wordpress.com/"; would cause the image URL: "" to redirect to the spotlight.wordpress.com webpage? Running Apache 2.2.9 on FreeBSD 6.x. -- Thanks! Glenn Gillis Information Technology Manager Environmental Law Alliance Worldwide U.S. Office http://www.elaw.org smime.p7s Description: S/MIME Cryptographic Signature
Re: [us...@httpd] Reverse proxy - block explicit proxy setup
Actually it doesn't block all the requests, but the requests that should go through the transparent proxy aren't rewriten, they are tried to be resolved to local files. From: alin vasile To: users@httpd.apache.org Sent: Mon, April 19, 2010 11:24:16 PM Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup I made this virtual host: NameVirtualHost * Order deny, allow Deny from all But it blocks also my normal GET requests that should go through the transparent proxy (the client doesn't have the webserver configured as proxy). From: Eric Covener To: users@httpd.apache.org Sent: Mon, April 19, 2010 10:39:31 PM Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup On Mon, Apr 19, 2010 at 2:47 PM, alin vasile wrote: > Hi all, >After I am setting up a reverse proxy using httpd, how can I disable the > requests from the clients that have it configured as (forward) proxy? > For example If i put my proxy IP & port in Proxomitron, even if I > configured "ProxyRequests Off", I can see in it while testing : > New Message Log Window > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Thanks. It's probably not being proxied, but served by your default (first-listed) vhost that matches. Create a default virtualhost to capture these and configure it to deny all. -- Eric Covener cove...@gmail.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: 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] Reverse proxy - block explicit proxy setup
I made this virtual host: NameVirtualHost * Order deny, allow Deny from all But it blocks also my normal GET requests that should go through the transparent proxy (the client doesn't have the webserver configured as proxy). From: Eric Covener To: users@httpd.apache.org Sent: Mon, April 19, 2010 10:39:31 PM Subject: Re: [us...@httpd] Reverse proxy - block explicit proxy setup On Mon, Apr 19, 2010 at 2:47 PM, alin vasile wrote: > Hi all, >After I am setting up a reverse proxy using httpd, how can I disable the > requests from the clients that have it configured as (forward) proxy? > For example If i put my proxy IP & port in Proxomitron, even if I > configured "ProxyRequests Off", I can see in it while testing : > New Message Log Window > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Thanks. It's probably not being proxied, but served by your default (first-listed) vhost that matches. Create a default virtualhost to capture these and configure it to deny all. -- Eric Covener cove...@gmail.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: 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] Reverse proxy - block explicit proxy setup
On Mon, Apr 19, 2010 at 2:47 PM, alin vasile wrote: > Hi all, > After I am setting up a reverse proxy using httpd, how can I disable the > requests from the clients that have it configured as (forward) proxy? > For example If i put my proxy IP & port in Proxomitron, even if I > configured "ProxyRequests Off", I can see in it while testing : > New Message Log Window > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Testing 192.168.187.129:3 > Waiting for remote proxy's reply > >HTTP/1.1 200 OK > Ending proxy test > Thanks. It's probably not being proxied, but served by your default (first-listed) vhost that matches. Create a default virtualhost to capture these and configure it to deny all. -- Eric Covener cove...@gmail.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: 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] Buen producto!!
On 04/19/2010 01:32 PM, Bocalinda wrote: Estimado amigo, ?Cómo está usted recientemente? decirte una gran sorpresa! Ktpshop compa?ía es una empresa de comercio electrónico de productos que ha clasificado superior Asia --- (www.ktpshop.info) y cuenta con la cooperación con Nokia, Sony, HP, etc durante muchos a?os, la calidad del producto es muy bueno. Ellos tienen una buena reputación, buena reacción muchas, y la entrega rápida. Ahora, la empresa (ktpshop.com) amplía su alcance. Gracias por los nuevos y antiguos clientes de apoyo, estos productos se venden a un descuento., un montón de amigos ya han comprado los productos de la empresa, y se elogió a los bienes, He ordenado una computadoras portátiles de Apple, Espero que no te lo pierdas. saludos! - The official User-To-User support forum of the Apache HTTP Server Project. Seehttp://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 Bocalinda, Your gmail account has been compromised. Please change your password. Frank. - 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: 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] Reverse proxy - block explicit proxy setup
Hi all, After I am setting up a reverse proxy using httpd, how can I disable the requests from the clients that have it configured as (forward) proxy? For example If i put my proxy IP & port in Proxomitron, even if I configured "ProxyRequests Off", I can see in it while testing : New Message Log Window Testing 192.168.187.129:3 Waiting for remote proxy's reply >HTTP/1.1 200 OK Ending proxy test Testing 192.168.187.129:3 Waiting for remote proxy's reply >HTTP/1.1 200 OK Ending proxy test Thanks.
[us...@httpd] Buen producto!!
Estimado amigo, ?Cómo está usted recientemente? decirte una gran sorpresa! Ktpshop compa?ía es una empresa de comercio electrónico de productos que ha clasificado superior Asia --- (www.ktpshop.info) y cuenta con la cooperación con Nokia, Sony, HP, etc durante muchos a?os, la calidad del producto es muy bueno. Ellos tienen una buena reputación, buena reacción muchas, y la entrega rápida. Ahora, la empresa (ktpshop.com) amplía su alcance. Gracias por los nuevos y antiguos clientes de apoyo, estos productos se venden a un descuento., un montón de amigos ya han comprado los productos de la empresa, y se elogió a los bienes, He ordenado una computadoras portátiles de Apple, Espero que no te lo pierdas. saludos! - 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: 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] Combining mod_jk and Location Directives
On Mon, Apr 19, 2010 at 4:22 PM, Nick Tkach wrote: > Is it possible, for a given URL that's being directed to mod_jk, to lock it > down so that you can only access it from a particular subnet? > > For example, let's say I have an app with JkMounts defined: > > JkMount /myapp worker1 > JkMount /myapp/sub worker2 > JkMount / worker3 > > Then I have a sub-directory, /admin that I want to restrict to being only > available from 192.168.1.*. Is there some combination of JkMount and > something like this that will get the desired effect or is this not possible > with just mod_jk and Location? Do you *have* to do something with Java > enterprise resources to lock it down? > > > Order deny, allow > deny from all > allow from 192.168.1 > > I don't use mod_jk, but doesn't what you typed do exactly what you want? Have you tried it? The authnz layers in apache don't care where the actual content comes from*. Cheers Tom * For - obviously for they do.. - 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: 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] Combining mod_jk and Location Directives
Is it possible, for a given URL that's being directed to mod_jk, to lock it down so that you can only access it from a particular subnet? For example, let's say I have an app with JkMounts defined: JkMount /myapp worker1 JkMount /myapp/sub worker2 JkMount / worker3 Then I have a sub-directory, /admin that I want to restrict to being only available from 192.168.1.*. Is there some combination of JkMount and something like this that will get the desired effect or is this not possible with just mod_jk and Location? Do you *have* to do something with Java enterprise resources to lock it down? Order deny, allow deny from all allow from 192.168.1 This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to Ahold and/or its subsidiaries (“Ahold”) or otherwise confidential or legally privileged. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by Ahold. Files attached to this message may only be transmitted using secure systems and appropriate means of encryption, and must be secured using the same level of password and security protection with which the file was provided to you. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. - 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: 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] change 404 status for given filespec?
Hello. I thought this might be simple, but I've not been able to find anything which works after much searching/experimenting. I have an application which submits a job to my webserver, then polls every few seconds for the output result file to be available. I am using NeoLoad (http://www.neotys.com/) to test my server. When the app (& NeoLoad) polls, & the file is not there (most of the time), Apache returns a 404 . There are many of these, so my NeoLoad results show many 'errors', & I can hardly tell if I have an actual error. So, I need either someone to tell me how to get NeoLoad to 'filter' 404s for a given filespec, or how to have Apache rather return 204, or some such, for DocumentNotFound for a given filespec. Thanks. - 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: 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] Is it possible to use mod_speling together with mod_rewrite?
Hello, we are using extensively mod_rewrite to identify what's the path where the resource is locate. Now a new requirement (due to a migration from Windows to Linux) makes us willing to use mod_speling to match a filename not case-sensitively. We added "CheckCaseOnly On" to the .htaccess (and mod_speling is build-in into httpd) but after the rewrite rule has been executed, the mis-capitalized file is not recognized. Is is possible to use mod_rewrite and, chained, mod_speling? os can they be used only in an exclusive fashion (either rewrite or speling)? Thanks in advance, Sandro - 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: 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] mod_cache mod_header set header for cached response
On Mon, Apr 19, 2010 at 6:52 AM, xgas wrote: > What I want to achieve is following: > All responses have header CacheHit with request times. When a response is served from the cache, all of this processing is skipped -- the original response and its headers are all that goes out. -- Eric Covener cove...@gmail.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: 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] Timestamps of access log entries
Hi there, I've not had any responses to this problem so I assume no one else has the same issues. Any offers? I've already tried changing the timestamp strings in the log format to localized but this appears to have made no difference... Cheers Steve From: Foster, Stephen (ASPIRE) Sent: 07 April 2010 13:25 To: users@httpd.apache.org Subject: [us...@httpd] Timestamps of access log entries Hi there, I am having troubles with the switch over between GMT and BST with respect to the entries going in the log files, I am using apache 2.0.55 BTW. The timezones on our servers are set to GB and during British Wintertime the log file entries are stamped correctly, however when moving to BST I have to add the following to the apache startup script to get the timestamps in BST format. TZ=GMT0BST export TZ And obviously remember to take this out when returning back to GMT in October. For the actual logfile configuration I use the following: Logformat "%{%Y-%m-%d %H:%M:%S}t %{X-Forwarded-For}i %{host}i %r %s %b %D %q %{User-Agent}i %{IR_PORTAL_COOKIE}C %{Referer}i" ORU_extended CustomLog "|/opt/app/apache/bin/rotatelogs /opt/app/apache/logs/site_access_log.%Y-%m-%d 86400" ORU_extended Is there any other way of ensuring the correct localtime gets put into the logfile entries?? I have tried using %X in place of %H:%M:%S but this has no effect. Cheers Steve Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. Capgemini is a trading name used by the Capgemini Group of companies which includes Capgemini UK plc, a company registered in England and Wales (number 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 6DB. This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
[us...@httpd] mod_cache mod_header set header for cached response
Hello, Please help me out. I want to set header for cached content. I use apache 2.2 with mod_header and mod_cache Relevant parts in my conf file are following: Header set CacheHit "%D %t" CacheEnable disk / CacheRoot /tmp/cache CacheDirLevels 5 CacheDirLength 3 CacheMinFileSize 2 CacheIgnoreCacheControl On CacheMaxFileSize 1 CacheIgnoreNoLastMod On CacheMaxExpire 120 CacheIgnoreQueryString On What I want to achieve is following: All responses have header CacheHit with request times. However I get this header only when cache is not hit and after that this header comes from cache without changes. This means that there are no new values but only the first request value. If I tell to cache to ignore this header ,then cached response didn't contain this header at all. Can someone confirm that this is not achievable or can someone point out what I must do to achieve this. Raino Kolk - 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: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org