Writing Header to Logfile

2017-07-07 Thread mailinglisten
Hello List, I would like to log a header which is send with the incoming request into a custom log field. How can this be done? Kind Regards Simon ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Joomla CMS on Nginx (Rewrite/Environment Problem)

2014-02-04 Thread mailinglisten
Fixed. $live_site in joomlas config was empty, apache ignores that, nginx not Kind Regards Simon Am 2014-02-04 12:49, schrieb mailinglis...@simonhoenscheid.de: Hello List, I did a testmigration of a Joomla CMS yesterday, and there is a bug (the system was running on Apache before): There wher

Joomla CMS on Nginx (Rewrite/Environment Problem)

2014-02-04 Thread mailinglisten
Hello List, I did a testmigration of a Joomla CMS yesterday, and there is a bug (the system was running on Apache before): There where no Apache rewrite rules on the old server. The Joomla Uses SEF (Search Engine Friendly URLs) OLD: http://www.example.com/pattern/article.html NEW: http://ww

Re: Need some help with rewrite rule translation

2013-06-19 Thread mailinglisten
Am 14.06.2013 14:11, schrieb mailinglis...@simonhoenscheid.de: I have found the point where my rules break, I've had the following location on top, to enable browser caching for images, for one month: #images give caching response for 1 month, browser will request after this period of time agai

Re: Need some help with rewrite rule translation

2013-06-14 Thread mailinglisten
I have found the point where my rules break, I've had the following location on top, to enable browser caching for images, for one month: #images give caching response for 1 month, browser will request after this period of time again location ~* \.(png|jpg|jpeg|gif)$ { expires 1m; log_not_fo

Re: Need some help with rewrite rule translation

2013-06-14 Thread mailinglisten
Thanks for the Detailed Information :-) I have still problems with this role: Client sends the first part of the urls, server rewrites it, and php delivers the picture. I tried to escape \ and dots, but this does not help. Server gives back a 404. Then I activated the error_log with level not

Re: Need some help with rewrite rule translation

2013-06-14 Thread mailinglisten
Am 13.06.2013 19:35, schrieb B.R.: What is the observed behavior? The parameters are not given corectly to the php script, delivering the picture. What do show your logs? As expected there ist a 404 in the belonging access log. I activated the rewrite_log but there is no output in the er

Re: Need some help with rewrite rule translation

2013-06-14 Thread mailinglisten
Both solutions look interesting, I will have a look on it. Am 13.06.2013 23:01, schrieb B.R.: On Thu, Jun 13, 2013 at 4:51 PM, Jonathan Matthews wrote: On 13 June 2013 09:38,   wrote: [snip] RewriteRule ^favicon.ico$ - [R=404,L] location /(^favicon)/(.*.(ico)) { return 404; Don't do that. You

Re: Need some help with rewrite rule translation

2013-06-13 Thread mailinglisten
I have an other rule driving me crazy: Apache: RewriteRule ^image/resized/(\d+)/([0-9a-fA-F]{6}/|)(.+)_(\d+)(|m)x(\d+)(|m)(_.+|).(jpg|jpeg|png|gif) resized/getByDimension.php?domainid=$1&objectid=$3&width=$4&height=$6&format=$9&random=$8&color=$2&maxwidth=$5&maxheight=$7 [L] nginx: location

Re: Need some help with rewrite rule translation

2013-06-13 Thread mailinglisten
That is what I have got: Am 13.06.2013 05:46, schrieb wishmaster: --- Original message --- From: "Simon H�nscheid" Date: 13 June 2013, 01:14:11 Hello List, I managed to translate nearly all our old apache rules, but have some problems with the following ones: # skip existing files RewriteCon