Re: Serving a subdirectory

2019-12-06 Thread Francis Daly
On Fri, Dec 06, 2019 at 04:47:08PM +0100, Thomas Schweikle wrote: Hi there, > OK. Trying with a completely different question: > > My server serves /var/www/html directory-content as static pages to http:// > / > > How do I have to set it up to additionally serve http:///chrony > from /var/www/

Re: Serving a subdirectory

2019-12-06 Thread Thomas Schweikle
OK. Trying with a completely different question: My server serves /var/www/html directory-content as static pages to http:// / How do I have to set it up to additionally serve http:///chrony from /var/www/chrony? I've tried with: server { listen 443 default_server ssl; listen [::]:443 de

Re: Serving a subdirectory

2019-12-06 Thread Francis Daly
On Fri, Dec 06, 2019 at 12:39:59PM +0100, Thomas Schweikle wrote: Hi there, This config fails to run for me. So, unless something very strange is happening, this is not the config that your running nginx is actually using. > location ~ "index\.sh"$ { $ sbin/nginx -t nginx: [emerg] unexpect

Re: Serving a subdirectory

2019-12-06 Thread Thomas Schweikle
Configuration /etc/nginx/sites-available: chrony default /etc/nginx/sites-available/chrony: server { listen 443 default_server ssl; listen [::]:443 default_server ssl; server_name ; root /var/www/chrony; index index.sh index.html; location /chrony { try_files $uri

Re: Serving a subdirectory

2019-12-05 Thread Francis Daly
On Wed, Dec 04, 2019 at 07:08:52PM +0100, Thomas Schweikle wrote: Hi there, > I'm a little bit lost now, since various configurations tried just dont > work. None of them. I'm not quite clear on what specifically you want your nginx to do. If it matters -- could you describe that? > locati

Serving a subdirectory

2019-12-04 Thread Thomas Schweikle
Hi! I'm a little bit lost now, since various configurations tried just dont work. None of them. I have: server { listen 443 default_server ssl; listen [::]:443 default_server ssl; server_name nc409.my.domain; root /var/www; index index.sh index.html; location /chrony {