Re: Allow/Deny rules in Location block

2023-01-23 Thread Ian Hobson
sic_user_file /etc/nginx/.htpasswd;         } Here, the deny rule is not working. Users are still able to access the page publicly. Am I missing something? -- Regards, Sandeep ___ nginx mailing list nginx@nginx.org https://mailman.nginx.org/mailman/listinfo/n

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-26 Thread Ian Hobson
could make a confusion ? I can see that example.org/app2 still lands on /var/www/htdocs/app1 Regards Le mardi 19 juillet 2022 à 06:10:28 UTC+2, Ian Hobson a écrit : Hi Mik, I think the problem is that your back end cannot distinguish app1 from app2. I don't think there is a need for pr

Re: 2 x Applications using the same domain behind a reverse proxy

2022-07-18 Thread Ian Hobson
te and then access different applications with example.org/app1, example.org/app2 Thank you ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org -- Ian Hobson Tel (+66) 626 544 695

Re: Domains not working as expected with nginx

2022-07-09 Thread Ian Hobson
sure what's going one, any help would be appreciated. Jason Crews ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org -- Ian Hobson Tel (+66) 626 544 695 ___ ng

Letsencrypt certbot leads to ssl protocol error

2022-06-24 Thread Ian Hobson
d=coachmaster.co.uk give no obvious errors, except that it shows the TLS 1.2 protocol NOT enabled. I'm way out of my depth now. Can anyone suggest something that is not weakening the security. Regards Ian -- Ian Hobson Tel (+66) 626 544 695 ___

Re: NGINX Proxy pass replace PNG file

2022-06-23 Thread Ian Hobson
nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org -- Ian Hobson Tel (+66) 626 544 695 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

Re: compiling nchan from source

2022-05-20 Thread Ian Hobson
Hi Sergey, On 21/05/2022 10:37, Sergey A. Osokin wrote: Hi Ian, hope you're doing well. I am thanks. On Sat, May 21, 2022 at 09:53:05AM +0700, Ian Hobson wrote: I compile nginx from source. When I use nchan-1.2.12 everything compiles clean. However I tried to upgrade to nchan-1.2.15

compiling nchan from source

2022-05-20 Thread Ian Hobson
ally? O/S Ubunutu 20.04 and Ubuntu 22.04 Regards Ian -- Ian Hobson Tel (+66) 626 544 695 ___ nginx mailing list -- nginx@nginx.org To unsubscribe send an email to nginx-le...@nginx.org

modules and compiling nginx 1.21.3 from source

2021-10-25 Thread Ian Hobson
use. Regards Ian -- Ian Hobson Tel (+351) 910 418 473 -- This email has been checked for viruses by AVG. https://www.avg.com ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Possible to make subdomain only accessible through 'embed'

2021-03-17 Thread Ian Hobson
t;embed.domain.com" so it can only be accessed through "docs.domain.com"? Can this be done with nginx conf or another method? Thank you! Jore ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx --

Re: Multiple SSL web sites with nginx

2020-07-12 Thread Ian Hobson
may be a typo in your configuration - try sudo nginx -t to prove both servers are loaded. Regards Ian -- Ian Hobson Tel (+351) 910 418 473 -- This email has been checked for viruses by AVG. https://www.avg.com ___ nginx mailing list nginx@nginx.org

Re: Nginx wp-admin access control

2020-04-15 Thread Ian Hobson
nf;     break;     }    #deny all;    rewrite  ^(.*)$ / redirect; } Thanks Lawrence ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx -- Ian Hobson Tel (+351) 910 418 473 -- This email has been checked

Re: Unable to see a php page

2020-03-16 Thread Ian Hobson
er level. Then, if you use the line fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; (That is all on one line). in the localtion clause, things should work. -- Ian Hobson -- This email has been checked for viruses by AVG. http

Re: nginx and php settings

2020-03-14 Thread Ian Hobson
Hi Mamood, On 14/03/2020 08:09, Mahmood Naderan wrote: Hi, I have install nginx 1.0.15 and php 5.3 on a VM running Ubuntu 14.04. The configuration file looks like below $ cat /usr/local/nginx/conf/nginx.conf #user  nobody; worker_processes  1; #error_log  logs/error.log; #error_log  logs/error.

Re: Controlling Access on and off LAN

2019-12-09 Thread Ian Hobson
On 07/12/2019 08:14, Rhys Ferris wrote: > > Hello everyone, > > Hopefully this is a simple question with a simple answer. > > > First my actual goal: > > I'm hosting one server: domain.net which at domain.net serves a basic > homepage and uses iframes to proxy several other service

Re: Allow internal redirect to URI x, but deny external request for x?

2019-08-31 Thread Ian Hobson
t" and then restarting nginx to pick up the new version. By not using redirects, this method should be more efficient. Regards Ian -- Ian Hobson ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Allow internal redirect to URI x, but deny external request for x?

2019-08-30 Thread Ian Hobson
mlink to the desired version. This can be changed using "ln -sfn version/dir serving/root" and then restarting nginx to pick up the new version. By not using redirects, this method should be more efficient. Regards Ian -- Ian Hobson ___ ngin

Re: Where does the content get stored?

2019-03-20 Thread Ian Hobson
back end servers, so there is no need to have any of the web application files running on it? That is how I would set it up. Rgds Ian -- Ian Hobson ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Protect against php files being send as static files

2019-03-12 Thread Ian Hobson
Hi, On 12/03/2019 08:53, Olaf van der Spek wrote: Ian Hobson Wrote: http://forumm.nginx.org/read.php?2,88846,page 3 This link doesn't work.. Sorry - typo (made months ago) https://forum.nginx.org/read.php?2,88845,page=3 try_files $uri =404; fastcgi_split_path

Re: Protect against php files being send as static files

2019-03-06 Thread Ian Hobson
00; } } Then you should be OK. There is actually no need to move php files to a new root. Regards Ian -- Ian Hobson Tel (+351) 910 418 473 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: location ~* .(a|b|c)$ {} caused an error

2017-12-04 Thread Ian Hobson
Hi Sophie, On 04/12/2017 16:49, Sophie Loewenthal wrote: Hi, When I put this location block for case insensitive matching into the vhost produced an error. nginx: [emerg] location "/" is outside location ".(jpg|jpeg|png|gif|ico|css|js)$" in /etc/nginx/sites-enabled/example.conf:13 My vhost

Re: Upgrade to Ubuntu16.04 LTS from 14.04 LTS killed my php

2017-04-22 Thread Ian Hobson
orum.nginx.org/read.php?2,273798,273798#msg-273798 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx --- This email has been checked for viruses by AVG. http://www.avg.com -- Ian Hobson Tel (+351) 910 418 473

Re: Images loaded but not displaying

2016-07-16 Thread Ian Hobson
Hi skorpinok Two points: 1) Use correct HTML, or you can only blame yourself if different browsers mangle it each in their own way. The structure is Html 5 only. page content properly nested. (eof) 2) The src url takes its root as the location of the current page (unles

Re: Set up version control of local files with the help of nginx server

2015-10-31 Thread Ian Hobson
uld say "use fossil in scgi mode"; but if you have reasons to prefer svn, then that wouldn't be helpful. Cheers, f -- Ian Hobson Preparing ebooks for the Kindle to give the best possible reader experience. Tel 020 3287 1392 ___ ng

Basic protection for different IPs

2015-10-08 Thread Ian Hobson
Hi All, I want to keep casual visitors out of a test website, yet enable the developers who come in via ssh to use it without entering a password, and allow invited people to come in using a password. In other words, how can I set up basic protection on my test website when responding to the

nginx "Segementation Fault" - dont know where to start

2013-12-10 Thread Ian Hobson
6 GNU/Linux This includes all released updates. And on the production server it is Linux ianhobson.com 3.2.0-39-virtual #62-Ubuntu SMP Wed Feb 27 22:45:45 UTC 2013 i686 athlon i386 GNU/Linux This includes all updates up to about 3 weeks ago. I don't know where to start to try and find

Re: Help needed with config

2013-11-04 Thread Ian Hobson
Hi Francis, Your guess was spot on. I had domain "resellerdev.anake.hcs" confused with "reseller.anake.hcs" , becasue of a switch about on my favourites menu :( Thanks. Ian On 04/11/2013 19:01, Francis Daly wrote: On Mon, Nov 04, 2013 at 05:37:15PM +, Ian Hob

Help needed with config

2013-11-04 Thread Ian Hobson
Hi, I'm baffled. What I want to do is to serve static and php files from one root if they exist there, and from another if they don't, and give a 404 error if the file is in neither location. I have the following config file. server { server_name reseller.anake.hcs; listen 80; f

Re: Solving a 500 error

2013-10-01 Thread Ian Hobson
anged. Sometimes I get two consecutive 500 errors, sometimes only one. I'm still mystified as to why I should get any at all - and why on unchanged files? Regards Ian -- Ian Hobson 31 Sheerwater, Northampton NN3 5HU, Tel: 01604 513875 Preparing eBooks for Kindle and ePub formats to give the b

Solving a 500 error

2013-10-01 Thread Ian Hobson
broadcast; set $push_channel_id $arg_id; default_type text/plain; } } -- Ian Hobson 31 Sheerwater, Northampton NN3 5HU, Tel: 01604 513875 Preparing eBooks for Kindle and ePub formats to give the best reader experience. ___ nginx

Re: index and location not working together properly?

2013-07-26 Thread Ian Hobson
Hi Maxim, Thank you. That worked a treat. Regards Ian On 26/07/2013 16:25, Maxim Dounin wrote: Hello! On Fri, Jul 26, 2013 at 11:19:45AM +0100, Ian Hobson wrote: [...] root /home/ian/websites/reseller/htdocs; # if / then redirect to index.php location = / { # serve

index and location not working together properly?

2013-07-26 Thread Ian Hobson
e checked many times, and there are NO permission problems on directories and files. So what is going wrong. It appears as if try_files ?? ?? @somewhere ; disables index. Thanks for your help. Ian p.s. Is there an alternate approach that I might try? -- Ian Hobson 31 Sheerwater, Nor

Re: Help needed with configuration

2013-07-18 Thread Ian Hobson
nx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx - No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.3349 / Virus Database: 3204/6500 - Release Date: 07/17/13 -- Ian Hobson 31 Sheerwater, Northampton NN3 5HU, Tel: 01604 513875 Prepar

Help needed with configuration

2013-07-18 Thread Ian Hobson
Hi All, I am trying to set up Nginx for a reseller scenario. The reseller will get his own root, and be able to create his versions of any file on the site, or, by leaving the file out, simply have the basic one used instead. My test configuration is below, and it so nearly works! The URL