Re: RE: Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
I was wrong... >This seems to work: >>rewrite ^/e/(.*) /$1 permanent; It only works for the first level... 'threedaystubble.com/Gallery.html' works but other links from that page that got deeper into the file structure do not! So, maybe map directive is needed after all... I'm planing to try

Re: RE: proxy_pass Not Working on Port 80

2020-09-09 Thread figshta
Thank you Francis! I realize that some of these are probably rhetorical questions, but in the interest of learning, I will try to answer them anyway. https://community.letsencrypt.org/t/nginx-proxied-server-running-certbot-wrong-certificate/132635/2 In short, I ran Cerbot twice, once for each se

Re: RE: Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
Thank you Reinis. I really appreciate your help and your patience. I am trying to learn this, so seeing what how it works is very useful. To be clear, hopefully, I need all the (multiple) subdirectories of threedaystubble.com/e/ in existing inbound links to refer to the new structure threedaystub

Re: RE: proxy_pass Not Working on Port 80

2020-09-09 Thread Francis Daly
On Wed, Sep 09, 2020 at 10:40:35AM -0400, figshta wrote: Hi there, > I really appreciate your help, unfortunately it isn't working yet... > > Are there any another ways to trouble shoot this port problem? What request do you make of nginx-frontend? What request do you want nginx to make of the

RE: Redirect Question for Directory Structure Change

2020-09-09 Thread Reinis Rozitis
It is a bit unclear if you want only a single rewrite or are there multiple different directory mappings/redirects. > I tried a couple of ideas, but they didn't work, I thought this location > directive > inside a server block was best, but it didn't work. > > location = /e { >return 31

Redirect Question for Directory Structure Change

2020-09-09 Thread figshta
I'm looking for help with a permanent site-wide redirect. I have a website that I moved to a new server. For some crazy reason the old server had an odd structure that I am changing. The URL root for the old site is http://threedaystubble.com/e/ I have changed it to be http://threedaystubble.com

Re: RE: proxy_pass Not Working on Port 80

2020-09-09 Thread figshta
Thank you Francis and Rennis. I really appreciate your help, unfortunately it isn't working yet... Are there any another ways to trouble shoot this port problem? Rennis: Your suggestion looked so promising. > In this configuration nginx doesn't pass the Host header to backend. > In case there

Re: Worker process core dumped

2020-09-09 Thread Maxim Dounin
Hello! On Tue, Sep 08, 2020 at 10:49:44PM -0400, allenhe wrote: > I found most times using "r" after ngx_http_free_request() won't have any > problem. the core dump would happen once for a while in the high load. That's because use-after-free errors not always result in segmentation faults as l

RE: Full logging

2020-09-09 Thread Reinis Rozitis
> I need a HTTP proxy that can handle requests for a single upstream server, > but also log request headers, raw request body, response headers and raw > response body for each request. Preferably this should be logged to a > separate daily logfile (with date-stamped filename), with timestamps, but

nginx + Wordpress = problems with permalinks

2020-09-09 Thread Pekkonen
Hi guys! I try to use nginx for Wordpress and have a problems when setup Permalinks to all other format when "Plain" I use nginx 1.14.2 PHP 7.3 This is my config /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/w

RE: proxy_pass Not Working on Port 80

2020-09-09 Thread Reinis Rozitis
> -- > #Proxy server (Server1) > > # threedaystubble.com server > server { > listen 80; > server_name www.threedaystubble.com threedaystubble.com; > location / { > proxy_pass http://192.168.3.5:80; > } > } In this co

problem ajax with nginx

2020-09-09 Thread doudootiana
Hy Ladies and gentlemen :) I have migrated my project from Apache2 and php7 to nginx with php-php, version 7 too. With Apache2, everything worked. With Nginx, only ajax fails. With Ajax, i try to execute a php script. Trying to determine where is the problem, i have : -tested php code(echo and

Full logging

2020-09-09 Thread Hans Liss
Hi! I need a HTTP proxy that can handle requests for a single upstream server, but also log request headers, raw request body, response headers and raw response body for each request. Preferably this should be logged to a separate daily logfile (with date-stamped filename), with timestamps, but t

Re: proxy_pass Not Working on Port 80

2020-09-09 Thread Francis Daly
On Wed, Sep 09, 2020 at 01:58:42AM -0400, figshta wrote: Hi there, > I have two servers behind on IP address. What does that mean, in terms of "traffic to the IP address gets sent to server#1 or to server'2"? > Server1 is hosting several websites > all using TLS exclusively. That suggests that