Re: WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
On 16/10/2024 12:19 π.μ., Nikolaos Milas via nginx wrote: ... I tried that but no, removing the trailing slash did not change anything. ... I found that the problem is that, as the proxied page is rendered over SSL, browsers are auto-blocking parts of the page as non-secure. This is due, I

Re: WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
On 15/10/2024 5:11 μ.μ., Kevin Weis via nginx wrote: have you tried to remove the trailing slash from the upstream url? Hi Kevin, Thanks for the hint. I tried that but no, removing the trailing slash did not change anything. Any other hints will be welcome! Thanks again, Nick smime.p7s

WordPress Website not rendered properly via nginx reverse proxy

2024-10-15 Thread Nikolaos Milas via nginx
Hello, We are using nginx on a server as a reverse proxy and it works fine serving multiple websites. Now I am trying to reverse proxy another one, a WP website, in the same way, but it won't render correctly. I can only see the main page areas and only some text at some places, but most c

Re: Compilation of brotli for nginx fails since version 1.27.0 on Rocky Linux 8

2024-09-03 Thread Nikolaos Milas via nginx
On 3/9/2024 9:57 μ.μ., Kevin Weis via nginx wrote: ... I was able to reproduce your exact error and find a solution that should meet your needs, using the current Rocky Linux 8 container image from https://hub.docker.com/_/rockylinux with the image id of c79048e50f5f. My solution in short: I

Compilation of brotli for nginx fails since version 1.27.0 on Rocky Linux 8

2024-09-03 Thread Nikolaos Milas via nginx
Hello, I have been regularly upgrading nginx with brotli for a long time without issues, compiling brotli from source with the process you can see below. Now, since version 1.27.0, brotli compilation fails with the error: /usr/bin/ld: cannot find -lbrotlienc /usr/bin/ld: cannot find -l

Re: Nginx not loading different certs on two hosts

2020-12-15 Thread Nikolaos Milas
On 12/12/2020 2:54 π.μ., Maxim Dounin wrote: Glad it works now, and hope the previous behaviour is clear now as well: it is a result of no IPv4 listening socket on port 443 in the second vhost in the original configuration. Thank you Maxim, I appreciate your detailed explanation and all your

Re: Nginx not loading different certs on two hosts

2020-12-11 Thread Nikolaos Milas
On 10/12/2020 4:42 μ.μ., Maxim Dounin wrote: How do you test it? Note well that the second vhost is only available on port 443 via IPv6. Finally, what is the best way to successfully listen (i.e. the suggested way to configure the "listen" directives) to 80 and 443 ports on both IPv4 and IPv6 o

Nginx not loading different certs on two hosts

2020-12-09 Thread Nikolaos Milas
Hello, On a Centos 7 with nginx-1.18.0 I have configured two vhosts, as follows: First one: server {     listen [::]:80 ipv6only=off;     listen    443 ssl http2 default deferred;     listen    [::]:443 ssl http2 default deferred;     server_name  site1.world.example.com;     ssl_certificat

Re: Puzzling Log messages talking to php-fpm

2020-12-02 Thread Nikolaos Milas
On 2/12/2020 12:44 π.μ., Reinis Rozitis wrote: Or even better is to use unix sockets so you can avoid the tcp stack between nginx and php-fpm at all. Thank you very much for your analysis and advice. You found the cause of the issue! I have managed to switch to connection via unix socket a

Puzzling Log messages talking to php-fpm

2020-12-01 Thread Nikolaos Milas
Hello, To start with, I am not an nginx geek, so please be patient with me! We have a server (real name substituted by mapserver.example.com) running nginx 1.18.0 on CentOS 7 with php-fpm listening on port 9001. The server is only serving a maps application. The application is mainly called

Experiences with pagespeed repo?

2020-10-14 Thread Nikolaos Milas
Hello, I would like to ask for your opinions, experiences and advice on using the pagespeed repo on CentOS (I am particularly interested on CentOS 8) in production servers. Would you opt to install nginx directly from pagespeed repo rather than from the project nginx repo? (I would think t

Re: php not working from aliased subdir

2017-02-01 Thread Nikolaos Milas
On 31/1/2017 10:13 μμ, Francis Daly wrote: Replace the line with fastcgi_param SCRIPT_FILENAME $request_filename; Thank you Francis. Your suggestion has indeed solved the issue! You rock! Comparehttp://nginx.org/r/$fastcgi_script_name with http://nginx.org/r/$request_filename to se

Re: php not working from aliased subdir

2017-01-30 Thread Nikolaos Milas
On 19/1/2016 10:58 μμ, Francis Daly wrote: Good luck with it, Thank you Francis and everyone for your feedback. I have tried various things with the aliased directories, but I am still having the problem. I hope someone can help me with my current config, which I attach, together with the

Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 20/1/2017 11:41 μμ, Peter Booth wrote: But this link suggests otherwise:http://nginx.org/en/docs/debugging_log.html Wow! Didn't know about that! Indeed, my installation includes nginx-debug!! I've tried it and it works fine! My digging (in debugging) starts now Wish me a good underst

Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 20/1/2017 11:16 πμ, Nikolaos Milas wrote: As I am on CentOS 6 and I am using the nginx repo, I have installed: nginx-1.10.2-1.el6.ngx.x86_64 nginx-debuginfo-1.10.2-1.el6.ngx.x86_64 I guess I should be OK with these? It seems I am not. :-( I tried "nginx -V" and I didn

Questions about root and alias directives

2017-01-20 Thread Nikolaos Milas
Hello, I need a config which includes multiple different physical paths. So I have: server { listen [::]:80; ... root /var/webs/wwwmain/www/; index index.php index.html index.htm; ... location / { try_files $uri $uri/ /index.p

Re: How to log internal location evaluation

2017-01-20 Thread Nikolaos Milas
On 19/1/2017 10:27 μμ, Peter Booth wrote: You can get all that and a lot, lot more if you build a debug enabled version of nginx Thank you Peter, As I am on CentOS 6 and I am using the nginx repo, I have installed: nginx-1.10.2-1.el6.ngx.x86_64 nginx-debuginfo-1.10.2-1.el6.ngx.x86_64

How to log internal location evaluation

2017-01-19 Thread Nikolaos Milas
Hello, I am running nginx 1.10.2 on CentOS 6. I am trying to configure a new (virtual) website and I am having problems. I would like to be able to log details of the evaluation of URIs in location blocks by nginx. For example, I would like to see in a log: * which location block (actually

php not working from aliased subdir

2016-01-19 Thread Nikolaos Milas
Hello, I have been adding (to my nginx config) directories outside of the default "root" tree like: location ~ /newlocation(.*) { alias /var/websites/externaldir$1; } This works OK. however, I find that the above config does not process php files. I tried adding (before the

Building a redundant mail service

2014-09-18 Thread Nikolaos Milas
Hello, I would appreciate your advice on the following: We are trying to build a redundant mail service, and we are investigating the use of nginx as smtp/pop3/imap proxy with TLS/SSL support (ports 25/587, 143/993, 110/995). We already have two production mail servers, vmail1 and vmail2, ru

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Nikolaos Milas
On 14/8/2014 3:26 μμ, Francis Daly wrote: The combination of a regex location, alias, and try_files, probably does not do what you want. I suspect that the 404-with-no-error-log comes from this try_files line. Thank you very much Francis, I removed the try_files line and did the modification

Re: Cannot create directory alias (with php pages)

2014-08-14 Thread Nikolaos Milas
On 13/8/2014 11:42 μμ, Nikolaos Milas wrote: Now, I want to create an /xhprof location, which includes php code and lives in another disk path (in: /usr/share/xhprof/xhprof_html). I can't make this work... I have modified configuration as follows; the /xprof location works (i.e.

Cannot create directory alias (with php pages)

2014-08-13 Thread Nikolaos Milas
Hello, I have a hard time trying to make a "directory alias" (in Apache terminology - sorry, I still have a lot to learn on nginx)... I have piwik.example.com, configured to run piwik analytics (it is a php site), and it works fine. I runs under nginx v1.6.1, php-fpm v5.3.3 on an updated Ce

Re: Suppress "no index file" errors when autoindex on

2013-11-19 Thread Nikolaos Milas
On 19/11/2013 4:49 μμ, Maxim Dounin wrote: Most likely you are using some rewrite instead, or something like this. Thank you, In the end, it seems someone was actually trying to enter a wrong URL. Thanks for the clarifications and sorry for the noise... Nick ___

Suppress "no index file" errors when autoindex on

2013-11-19 Thread Nikolaos Milas
Hello, Can we suppress errors of the form: 2013/11/19 10:14:58 [error] 21848#0: *49602 "/path/to/web/root/DATA/2013/320/index.php" is not found (2: No such file or directory), client: :::xxx.xxx.154.69, server: www.example.com, request: "GET /location/path/2013/320/ HTTP/1.1", host: "www

Re: alert: ... pread() read only

2013-11-19 Thread Nikolaos Milas
On 19/11/2013 11:21 πμ, Maxim Dounin wrote: I don't think that open_file_cache results in a measurable difference in your case. I would recommend disabling it unless you have good reasons to enable it, just to simplify maintenance. Thank you all for your suggestions. It seems that disabling

Re: alert: ... pread() read only

2013-11-18 Thread Nikolaos Milas
On 19/11/2013 9:39 πμ, Nikolaos Milas wrote: The system info: Linux myserver.example.com 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 I forgot to mention that this is a VPS running CentOS 6.4 as a VM under KVM. The file system at the VM is ext4 over LVM but I

alert: ... pread() read only

2013-11-18 Thread Nikolaos Milas
Hello, We are running a Joomla website loading a google map in an iframe (under NGINX) in the main (home) web page. This is the page mostly visited as it contains almost real-time data to be viewed by clients. The system info: Linux myserver.example.com 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed

Re: Nagios check for nginx with separate metrics

2013-11-14 Thread Nikolaos Milas
On 14/11/2013 12:00 πμ, Francis Daly wrote: If*everyone* who writes a checker provides multiple metrics at once, that kind of suggests that a single metric at a time isn't all that important. I won't disagree, you need to correlate metrics, but you cannot graph them as a function of time if

Re: Nagios check for nginx with separate metrics

2013-11-13 Thread Nikolaos Milas
On 27/10/2013 9:09 μμ, Nikolaos Milas wrote: I am trying to run a Nagios check for nginx (in Opsview Core) but I have a problem: All of the available (to my knowledge) nginx Nagios checks (http://exchange.nagios.org/directory/Plugins/Web-Servers/nginx/) produce comprehensive output which

Nagios check for nginx with separate metrics

2013-10-27 Thread Nikolaos Milas
Hello, I am trying to run a Nagios check for nginx (in Opsview Core) but I have a problem: All of the available (to my knowledge) nginx Nagios checks (http://exchange.nagios.org/directory/Plugins/Web-Servers/nginx/) produce comprehensive output which includes all "metrics" together, while I w

Re: Quick performance deterioration when No. of clients increases

2013-10-17 Thread Nikolaos Milas
On 16/10/2013 7:07 μμ, Nikolaos Milas wrote: Although the test scales OK until 500 users per sec, then "error_connect_emfile" errors start again and performance deteriorates. See the attached comparative chart. I resolved the "error_connect_emfile" errors by increasing t

Re: Quick performance deterioration when No. of clients increases

2013-10-16 Thread Nikolaos Milas
On 16/10/2013 7:10 μμ, Scott Ribe wrote: Have you considered not having vastly more worker processes than you have cores? (IIRC, you have configured things that way...) I have (4 CPU cores and): worker_processes 4; worker_rlimit_nofile 40; events { worker_connections 8192;

Re: Quick performance deterioration when No. of clients increases

2013-10-16 Thread Nikolaos Milas
On 16/10/2013 1:32 μμ, Nikolaos Milas wrote: Now my problem is that there seems to be a limit of performance... Increasing stress load more than that (I am using tsung for load testing), results only to increasing "error_connect_emfile" errors. I have been trying to resolve thi

Re: Quick performance deterioration when No. of clients increases

2013-10-16 Thread Nikolaos Milas
On 14/10/2013 5:47 μμ, Toni Mueller wrote: did you investigate disk I/O? Hi again, Thanks for your suggestions (see below on that). In the meantime, we have increased CPU power to 4 cores and the behavior of the server is much better. I found that the server performance was reaching a bot

Re: Quick performance deterioration when No. of clients increases

2013-10-12 Thread Nikolaos Milas
On 11/10/2013 11:18 πμ, Steve Holdoway wrote: Apart from adding cores, there are 2 things I'd suggest looking at - are you using an opcode cacher? APC ( install via pecl to get the latest ) works really well with php in fpm... allocate plenty of memory to it too - check the bandwidth at the n