Re: Nginx stop logging

2022-09-04 Thread Vincent M.
te a new log.  I don't know Rocky Linux, so I can't be specific in further suggestions.  ~ Frank On Sun, Sep 4, 2022 at 7:24 AM Vincent M. wrote: Hello, The logs are working fine but once a day, nginx stop loging access and then the file log file is empty. So every

Nginx stop logging

2022-09-04 Thread Vincent M.
Hello, The logs are working fine but once a day, nginx stop loging access and then the file log file is empty. So every day I have to restart my nginx server in order to get the logs. It's on a Rocky Linux 9 with Nginx 1.20.1 Never seen that before, what should I check? Thanks, Vincent. ___

Re: Same root folder for multiple website different robots.txt

2021-08-07 Thread Vincent M.
Le 06/08/2021 à 18:21, Francis Daly a écrit : On Fri, Aug 06, 2021 at 04:20:56PM +0200, Vincent M. wrote: Hi there, Is it possible to tell the second server to link the file robots.txt to another file like robots-pro.txt? Either of location = /robots.txt { alias /var/www/website/prod

Same root folder for multiple website different robots.txt

2021-08-06 Thread Vincent M.
Hello, I have a first website with this configuration: server {     server_name mywebsite.com;     root /var/www/website/prod; ... } and a second one like this with the same root folder: server {     server_name pro.mywebsite.com;     root /var/www/website/prod; ... } And th

Re: nginx getimagesize from local server: 403

2021-08-04 Thread Vincent M.
e on this rules added from https://github.com/mitchellkrogza/nginx-badbot-blocker ? Thanks :) Le 03/08/2021 à 21:14, Vincent M. a écrit : Hello all, I have a 403 error when trying to use the PHP function getimagesize on nginx based web server: list($imageWidth, $imageHeight) = getimagesize($im

nginx getimagesize from local server: 403

2021-08-03 Thread Vincent M.
Hello all, I have a 403 error when trying to use the PHP function getimagesize on nginx based web server: list($imageWidth, $imageHeight) = getimagesize($imagesSource['Main']); Where $imageSource['Main'] is like: https://mywebsite/include/php/render/canvas/VR/2/image/U35p/ver//bgColor/ff

Re: Don't log 404 error

2019-10-29 Thread Vincent M.
Le 29/10/2019 à 13:59, Sergey Kandaurov a écrit : On 29 Oct 2019, at 15:45, Vincent M. wrote: Hello, How not to log 404 errors: 2019/10/29 12:42:09 [error] 469#469: *16382 open() "/var/www/website/fr/telecharger" failed (2: No such file or directory), In my config I have: erro

Don't log 404 error

2019-10-29 Thread Vincent M.
Hello, How not to log 404 errors: 2019/10/29 12:42:09 [error] 469#469: *16382 open() "/var/www/website/fr/telecharger" failed (2: No such file or directory), In my config I have: error_log /var/log/nginx/website-error.log; Because I use 404 for doing url rewriting and so they are not errors

Re: Setting Charset on Nginx PHP virtual host

2019-08-05 Thread Vincent M.
Le 04/08/2019 à 23:57, Francis Daly a écrit : On Sun, Aug 04, 2019 at 03:11:36PM +0200, Vincent M. wrote: Hi there, But the special characters was displayed with "?" not with � . I wonder... The nginx docs say """Missing characters in the range 80-FF are replaced wi

Re: Setting Charset on Nginx PHP virtual host

2019-08-04 Thread Vincent M.
t PHP charset config is set to "utf-8" and to overwrite it, I have added on the beginning of my script:     ini_set('default_charset', 'iso-8859-1'); And it's working fine... Thanks all for your help, Vincent. Le 02/08/2019 à 17:05, Francis Daly a écrit : On

Re: Setting Charset on Nginx PHP virtual host

2019-08-02 Thread Vincent M.
_map? Thank you for your help, Vincent. Le 01/08/2019 à 22:07, Francis Daly a écrit : On Wed, Jul 31, 2019 at 05:29:37PM +0200, Vincent M. wrote: Hi there, I have specified charset and overried_charset on both server and location and yet, it was still sending headers in UTF-8. What doe

Setting Charset on Nginx PHP virtual host

2019-07-31 Thread Vincent M.
Hello, I tried to set the Charset of a virtual host like this: server {     root /var/www/mywebsite.com; ...     charset iso-8859-1;     override_charset on; ...     location ~ \.php$ {     include snippets/fastcgi-php.conf;     fastcgi_pass unix:/var/