Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live

How to disable Basic Auth for Owncloud location?

Hi all, I have several locations in my Nginx config file. I have Basic Auth enable for these locations. I want to disable Basic Auth only for Owncloud location in my config because I don't want...

View Article


Stuck with SSO/auth_request

Hi All, Complete nginx noob. I'm trying to implement SSO similar to this: https://developers.shopware.com/blog/2015/03/02/sso-with-nginx-authrequest-module/ however I am using node/passport/azure-ad...

View Article


reverse proxy with ssl redirecting to wrong server

Here's my problem. I have 3 physical servers behind the same IP address, using a reverse nginx proxy (running on a fast pfsense box) to direct the http/https traffic (2 of the servers host > 1...

View Article

Re: reverse proxy with ssl redirecting to wrong server

Here's a simplified config file: server { listen 9999; listen 444 ssl; server_name www.site3.com; ssl_certificate /etc/nginx/ssl/site3.com/server-nginx.crt; ssl_certificate_key...

View Article

Re: reverse proxy with ssl redirecting to wrong server

>> Even typing in https://www.site3.com redirects me on http://site4.com The application running at http://site4.com might be rewriting this because it is configured to do so, you may need to...

View Article


Image redirection to url - Not hotlinking

How do differentiate if the image is access via <img src='img.jpg'> and http://somesite.com/img.jpg (directly in the url?) If the img is directly accessed in the url of web browser, i want that...

View Article

Nginx and Thin with multi Apache instance

I have two Apache Instance: A1 listen on 80 port and A2 listen on 8080 and 8009 port, A1 should listen 80 on all IP addresses. I added VirtualHost to redirect sub URI of A1's 80 port to A2's 8080 port....

View Article

Re: Nginx and Thin with multi Apache instance

Solved, just add upstream before server section and redirect through thin sock file.

View Article


Can't get a rewrite rule right

Opencart has a strange URL structure: http://domain.com/index.php?route=common/home http://domain.com/index.php?route=account/register http://domain.com/index.php?route=checkout/cart...

View Article


if file exist redirect to that directory

Use something like try_files how can I check multiple directories to see if a file exist? If file exist redirect to that location if not display 404. old folder ^/content/uploads(/.*)?$ multiple...

View Article

How to disable request pipelining on upstream

Hi, Does anyone know a way to disable HTTP request pipelining on a same upstream backend connection? Let's say we have the below upstream backend that is configured with keepalive and no connection...

View Article

Setup Nginx Cluster in linux

I am new in Nginx , I need to setup Nginx Cluster in linux. Share me any good documentation or links

View Article

Redirect non existable subdomains

Hello all, I've deployed Django with nginx and gunicorn. When someone visits a subdomain that do not exist they get internal server error. How can I go around this and redirect the non existable sub to...

View Article


Re: Does Nginx handle Content-Encoding: gzip ?

Anyone knows if this is supported in current latest version?

View Article

Re: Does Nginx handle Content-Encoding: gzip ?

Found it at http://www.pataliebre.net/howto-make-nginx-decompress-a-gzipped-request.html#.V8SmwTXgn91

View Article


Re: Does Nginx handle Content-Encoding: gzip ?

This is a Lua feature and will always work because its not directly related to nginx-core. Search for openresty.

View Article

Re: Can't get a rewrite rule right

bump?

View Article


Redirect when site is unavailable.

I'm wondering if its possbile to configure Nginx to detect when a site is down, and redirect or serve an alternate page when said site is down. For example, I have a Sharepoint site that we use as our...

View Article

Moved MediaWiki and redirect search result links to new MediaWiki correctly

Hello everyone, I moved my MediaWiki to a new Domain (and replaced the old one with Wordpress). Now I would like to redirect all old search result links in Google search like...

View Article

Re: Moved MediaWiki and redirect search result links to new MediaWiki correctly

I Wrote: ------------------------------------------------------- > I'm trying things like > > server { > [..] > server_name sampleoldsite; server_name is "sampleoldsite.com" of course....

View Article
Browsing all 4759 articles
Browse latest View live


Latest Images