allow/deny by name?

2016-06-06 Thread Alex Hall
Hi all, Is there a way to allow or deny based on name? For instance, I currently have my site restricted to intranet traffic only, but I need to allow a remote SMTP server access. Can I do something like allow smtp.mysmtp.com; Thanks. -- Alex Hall Automatic Distributors, IT department ah

Re: Serving website with Apache, with Nginx as interface?

2016-05-17 Thread Alex Hall
On Tue, May 17, 2016 at 1:37 PM, Francis Daly wrote: > On Mon, May 16, 2016 at 08:50:44AM -0400, Alex Hall wrote: > > Hi there, > > > Well, it seems to be working now, and I'm thoroughly embarrassed about > it. > > The Nginx/Apache setup is fine, and has been, it

Fully hiding localhost:8080 with Nginx as reverse proxy?

2016-05-16 Thread Alex Hall
rching and found that this can happen if the email appears to come from localhost, or some other invalid domain. Given my setup, I suspect that this is exactly the problem. What can I do to have responses from Apache appear to come from the domain's IP, rather than 127.0.0.1:8080? Thanks!

Re: Serving website with Apache, with Nginx as interface?

2016-05-16 Thread Alex Hall
2016 at 7:32 AM, Alex Hall wrote: > > > On May 14, 2016, at 05:19, Francis Daly wrote: > > > > On Fri, May 13, 2016 at 01:24:57PM -0400, Alex Hall wrote: > > > > Hi there, > > > >> It's as though the proxy weren't working properly at all

Re: Serving website with Apache, with Nginx as interface?

2016-05-14 Thread Alex Hall
> On May 14, 2016, at 05:19, Francis Daly wrote: > > On Fri, May 13, 2016 at 01:24:57PM -0400, Alex Hall wrote: > > Hi there, > >> It's as though the proxy weren't working properly at all. >> I have it set up in a location: >> >>

Re: Serving website with Apache, with Nginx as interface?

2016-05-13 Thread Alex Hall
on > upstream backend1 { > #ip of Apache back-end > server 192.168.0.1:8080; > } > > 2016-05-13 1:59 GMT+03:00 Alex Hall : > >> Thanks! I followed you, until the proxy_pass. What is backend1, and where >> is it defined? I know it's something you made up, but h

Using proxy_redirect correctly

2016-05-13 Thread Alex Hall
onfusing. All I want to do is replace 127.0.0.1:8080 in any URL on this site with sd2.mysite.com. Do I need some kind of regular expression? To move this proxy somewhere else (currently it's in location / context)? Should my proxy_pass also be moved to a different context? -- Alex Hall A

Re: Serving website with Apache, with Nginx as interface?

2016-05-12 Thread Alex Hall
roxy_pass http://backend1 <http://backend1/>; > etc. > } > } > > 2016-05-13 0:34 GMT+03:00 Alex Hall <mailto:ah...@autodist.com>>: > Hello all, > Here's what I'm trying to do. I have two sites, sd1.mysite.com > <http://sd1.mysite.co

Serving website with Apache, with Nginx as interface?

2016-05-12 Thread Alex Hall
teway" and handler of one subdomain, and Apache as the handler for the other subdomain. Is there any way to do this? Am I even making sense? Thanks for any ideas anyone has. -- Alex Hall Automatic Distributors, IT department ah...@autodist.com ___

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
> On May 11, 2016, at 5:19 PM, Alex Hall wrote: > > > > On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: > >> Hello, >> >> On May 11, 2016, at 4:54 PM, Alex Hall wrote: >> >> >> >> On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrot

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
On Wed, May 11, 2016 at 5:04 PM, Jim Ohlstein wrote: > Hello, > > On May 11, 2016, at 4:54 PM, Alex Hall wrote: > > > > On Wed, May 11, 2016 at 4:50 PM, Jim Ohlstein wrote: > >> Hello, >> >> > Is it possible that your script is trying to

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
at the directory is. I've given permission to the entire folder: chown www-data /var/www/osticket chmod -R 777 /var/www/osticket But that doesn't seem to help. I'm new to Linux, though, so I may have missed something. I can't imagine where else it would be trying to write to. &g

Re: Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
> try_files $uri $uri/ /scp/ajax.php?$query_string; > } > > location / { > try_files $uri $uri/ index.php; > } > > > location ~ \.php$ { > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; > fastcgi_pass unix:/var/run/php-fpm.sock; &g

Anyone running OSTicket with Nginx?

2016-05-11 Thread Alex Hall
ning successfully, I'd love to know how you did it. Hopefully the OSTicket team will eventually support Nginx natively, but I'm not holding my breath. -- Alex Hall Automatic Distributors, IT department ah...@autodist.com ___ nginx mailing list

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
1, 2016 at 10:44 AM, Andrew Hutchings wrote: > Hi Alex, > > nginx -V uses stderr, so try: > > nginx -V 2>/tmp/out.txt > > This will redirect stderr to the file instead of stdout. > > Kind Regards > Andrew > > On 11/05/16 15:34, Alex Hall wrote: > >

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
alias /var/www/myapp/app/static; } } On Wed, May 11, 2016 at 3:24 AM, Francis Daly wrote: > On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: > > Hi there, > > > We may be finding the problem... I'm not sure what you mean by 'upstream > > s

Re: timeout with UWSGI?

2016-05-11 Thread Alex Hall
Yes, I'm using uwsgi_pass: uwsgi_pass 127.0.0.1:9876; On Wed, May 11, 2016 at 9:54 AM, Aleksandar Lazic wrote: > Hi Alex, > > Am 11-05-2016 09:24, schrieb Francis Daly: > >> On Tue, May 10, 2016 at 05:09:21PM -0400, Alex Hall wrote: >> >> Hi there, >>

Re: timeout with UWSGI?

2016-05-10 Thread Alex Hall
ve a deep enough grasp of how all this works to know what to put in one for UWSGI. I'll certainly start looking this up, though. On Tue, May 10, 2016 at 4:30 PM, Francis Daly wrote: > On Tue, May 10, 2016 at 03:29:24PM -0400, Alex Hall wrote: > > Hi there, > > > Sometimes,

timeout with UWSGI?

2016-05-10 Thread Alex Hall
x has given up on it, so I see an IOError reported in the log because of a broken pipe. I'm wondering how I can increase the timeout limit, to make Nginx wait longer before closing this connection? Thanks! -- Alex Hall Automatic Distributors, IT department ah...@au

Re: php5-fpm gives unknown script error

2016-05-10 Thread Alex Hall
rs in my Nginx log. Incidentally, if anyone has gotten OSTicket to work under Nginx and wouldn't mind emailing me off list, I'd love to pick your brain about what might be going wrong with the installation. On Tue, May 10, 2016 at 9:21 AM, Alex Hall wrote: > > > On Tue, May 10,

Re: Global denial for certain IPs or agents?

2016-05-10 Thread Alex Hall
, > > > mex > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,266738,266739#msg-266739 > > ___ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx >

Global denial for certain IPs or agents?

2016-05-10 Thread Alex Hall
7;t a server, it's a rule I want applied to all servers. Is this doable? If so, what's the process? Thanks. -- Alex Hall Automatic Distributors, IT department ah...@autodist.com ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: php5-fpm gives unknown script error

2016-05-10 Thread Alex Hall
On Tue, May 10, 2016 at 8:21 AM, Francis Daly wrote: > On Mon, May 09, 2016 at 05:52:47PM -0400, Alex Hall wrote: > > Hi there, > > without knowing anything about OSTicket... > > > FastCGI sent an stderr: unknown script while reading response header from > > upstre

php5-fpm gives unknown script error

2016-05-09 Thread Alex Hall
gestions, please let me know. If you need to see more configuration files, I can try to do that. The setup here is awkward (SSH from Windows to Debian, with no SCP support currently and no way to copy from or to the SSH session). I can copy files, but it's a bit of a process. Anyway, thanks in advan