1
vote
1answer
56 views

nginx limiting the redirection

We use nginx to redirect any http request to https connection, So though the user makes http connection nginx will redirect to https connection. Here does nginx have any limit that can handle only ...
0
votes
1answer
260 views

nginx https -> http redirection using wildcard error

I've already search the whole web for an answer, unfortunately there isn't. I hope there is a genius out here. Context: My nginx acts as a reverse proxy serving multiple domains Problem: the problem ...
0
votes
0answers
397 views

Varnish redirect loop

I've tried with a lot of varnish configurations and always experience the same redirect loop, after varnish is running for a couple of hours some pages are displaying the message: The page isn't ...
2
votes
1answer
109 views

nginx - get parsed server_name

I have created virtual hosts for my websites and then i have created an other virtual host with server_name -> default_server in order to catch everything else and show a specific page in that case ...
0
votes
1answer
79 views

Nginx redirect and geolocalization

I've the following problem with Nginx and GeoIP and will be nice if you can give me some pointers about the solution. Note: I know this can be solved on DNS side, but that won't be possible by now so ...
1
vote
1answer
272 views

Nginx: Redirect all traffic to Coming Soon page except own IP

I have a folder called "coming-soon" that I would like to redirect all traffic to when the site is down for maintenance. Currently, this is what I did: ----- START ----- location / { allow ...
2
votes
0answers
252 views

Nginx multiple server blocks

Im having an issue trying to configure Nginx to work with gitlab and some other sites I have. I have foo.com that points to my server. bar.foo.com also points to my server. I'm trying to have ...
0
votes
1answer
200 views

nginx redirect to another host with params?

i need to redirect http://auth.foo.bar/verify/:id/:name/:domain to http://auth2.foo.bar/api/verify/:id/:name/:domain where :id, :name and :domain are variables. any advice on this? thanks!
0
votes
1answer
198 views

Setting Up nginx Site Down That Responds Differently to Ajax?

I am trying to set up an automatic site-down page for nginx. So far I have this: location / { try_files /sitedown.html @myapp; } location @myapp { ... } ...
0
votes
1answer
174 views

nginx - another rewrite or internal redirection cycle - drupal

While migrating a site from another server, some strange problem occured. I use the default configuration for all my drupal sites, but this one doesnt seem to work. Some image files cause an internal ...
0
votes
3answers
916 views

Using port 80 for web server adds weird query string

When my web server is using port 80, a weird query string is appended to any page my visitors go to and breaks some of my services. I changed nginx to use port 81 and it works fine, without the ...
0
votes
1answer
841 views

Nginx - Redirect any Subdomain to File without Rewriting

Recently I have switched from Apache to Nginx to increase performance on a web server running Ubuntu 11.10. I have been having issues trying to figure out how certain things work in Nginx compared to ...
1
vote
1answer
6k views

How to quick and easy remove part of an URL in Nginx with HttpRewriteModule?

I know about the HttpRewriteModule, but I don't really know how to handle regex and I would need to redirect all URLs within a certain directory to another, specifically ...
-2
votes
1answer
260 views

How to redirect in nginx without using rewrite?

Can someone tell me how I can redirect x.domain.com to www.domain2.com in nginx without using the rewrite module/functionality?
2
votes
2answers
1k views

Prevent port change on redirect in nginx

I currently have nginx setup to serve content through Varnish. Nginx listens on port 8000 and varnish connects users' requests from 80 to 8000. The problem is, on some occasions, particularly when ...
0
votes
1answer
2k views

Nginx redirect one domain to another

I have two domain's set up on my server. Domain 1 is configured with google apps so that mail.domain1.com goes to google's mail. However, I would like domain1.com to redirect to domain2.com. ...