The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
35 views

Why do servers think I am in another country? [closed]

Half a year ago I visited Denmark with my laptop. Now I'm back in the US, but 10% of the websites I visit now default to Danish. In fact, I just installed SimpleSAML on my own development server, ...
1
vote
2answers
30 views

nginx location overwrites alias

I have an alias "/temp" that works ok, but when I add another location block, the alias returns 404. Working config: http://mysite.com/temp/blank.gif -> OK server { # ... location /temp { ...
0
votes
1answer
32 views

possible to have 2 nginx location block with same matching criteria?

For example, if I want to split my prevent hotlink block from caching definition block, and put them in seperate .conf file to be included latter by main.conf, will nginx only match the first one? ...
0
votes
1answer
88 views

Hosting Cacti install from NginX

I have having an issue with hosting a Cacti installation from NginX. I have cacti installed under /usr/share/cacti and the below block in my default NginX config file. location / { root ...
0
votes
2answers
36 views

What does the Nginx location “~ \..*/.*\.php$” do?

This question is related to Drupal & nginx : a sound “general purpose” configuration? I've successfully configured Nginx based on a number of examples I've found. Things are working fine, but I ...
0
votes
1answer
141 views

nginx make root of domain go to subfolder

I think that what I'm trying to acomplish is similar to question (=">Rewrite a subdirectory to root on nginx) but I'll try to explain it better so what I'm trying to do it to have the root of the ...
0
votes
2answers
82 views

Nginx location and root

I think I have a trivial problem with nginx but I can't see it. I have the following file tree: /data/www > main/ >> html/ >>>...some files (A) > wiki/ >>...some files ...
2
votes
1answer
91 views

Web Server Routing Based On Location

I have a website that has users from both Hong Kong and Australia. Unfortunately, since the server is located in Australia, users from Hong Kong are going to suffer latency problems. Traffic has to ...
0
votes
0answers
164 views

SSLVerifyClient optional with location-based exceptions

I have a site that requires authentication in order to access certain directories, but not others. (The "directories" are really just rewrite rules that all pass through /index.php) In order to ...
0
votes
0answers
14 views

NginX & Munin - Location and error 404 [duplicate]

Possible Duplicate: nginx location pathing issue I've a server that running nginx+php-fpm with this simple configuration: server { listen 80; server_name ipoftheserver; ...
0
votes
1answer
77 views

check parameters in nginx location then return

I wanna check my url's and return "200 Response code" when the "CODE" parameter is "000000000000" for example for this request: ...
0
votes
0answers
87 views

Serving a file with nginx

I have a webapp built in angular.js and angular. Since angular takes care of most urls by itself, i want to serve the file indexAng.html (along with any arguments) in response to a request for ...
1
vote
2answers
109 views

nginx rewriting location of permanent rewrites

I am trying to redirect from mydomain.com to www.mydomain.com .. However, nginx is rewriting the location-header to $host. server{ server_name mydomain.de; set $root /srv/www/mydomain.de; ...
0
votes
1answer
235 views

Nginx location to match query parameters

Is it possible in nginx to have a location {} block that matches query parameters. For example I want to pick up that "preview=true" in this url and then instruct it to do several different things, ...
0
votes
1answer
41 views

Find out where PHP is coming from? [closed]

If I type which php I get /Applications/MAMP/bin/php/php5.3.6/bin/php If I type where php I get /Applications/MAMP/bin/php/php5.3.6/bin/php /usr/bin/php And that's fine, but I am trying to ...
0
votes
0answers
53 views

Nginx rewrite causes duplicate urls

I am making a website where all pages will be re wrote to access php files. How can I make it so that the url http://example.com/test/ and http://example.com/example/ will rewrite to access /index.php ...
5
votes
3answers
675 views

Why is ping to Google servers and Google DNS so low?

I noticed that ping to Google DNS and to google.com from Serbia is about 15ms, but google servers are located in California! http://www.geoiptool.com/en/?IP=173.194.39.110 My dedicated server is ...
1
vote
1answer
130 views

URL-rewriting / try_files with Nginx's location directive

I have multiple Wordpress / Joomla instances under the same subfolder, is there a simple way to do the following statement in one location block? location /site1/ { try_files $uri $uri/ ...
1
vote
1answer
121 views

trouble with location regex and redirection in nginx

I want to setup proxy in nginx: location ~ ^/m/([^/]*)/([^/]*)/([^/]*)$ { proxy_pass http://127.0.0.1:8080/redir/m/$1/$2/$3; proxy_redirect off; proxy_set_header Host $host; proxy_set_header ...
0
votes
1answer
165 views

Nginx Execute Multiple Location Blocks

I have the following nginx location block: location ^~ /publish { allow 127.0.0.1; #Allow home allow 99.100.101.102; deny all; } Then this location block to process PHP after: location ...
0
votes
1answer
166 views

Nginx location block behave recursively

I have the following location block in nginx: location /stats { allow 127.0.0.1; deny all; } If I try and view /stats from my home MacBook I get 403 Forbidden as expected. However, if I view ...
1
vote
1answer
99 views

Nginx location block specific file

I have the following nginx location blocks: location /publish/domain.io.php { allow 127.0.0.1; deny all; } location ~\.php { try_files $uri =404; fastcgi_index index.php; fastcgi_param ...
1
vote
2answers
192 views

nginx location pathing issue

I've got a pretty much default sites-enabled set up in my nginx on debian squeeze and i'm now trying to get it to serve up my munin graphs on myhost/munin/ Heres the location i've added to the config ...
1
vote
1answer
188 views

nginx - request getting handled by multiple location blocks

I'm testing a setup where I'd like to have nginx serve up static media and proxy all other requests to another backend. My configuration looks like this: location /media {alias /var/httpd/media;} ...
2
votes
2answers
794 views

How to allow specific IP's to a URL (not directory!) in Nginx

I'm trying to deny access to a specific URL on our site running on Nginx but allow it from specific IP's, I've been trying to fiddle around using Location but it seems that's just trying to find a ...
1
vote
1answer
785 views

nginx: How can I set proxy_* directives only for matching URIs?

I've been at this for hours and I can't figure out a clean solution. Basically, I have an nginx proxy setup, which works really well, but I'd like to handle a few urls more manually. Specifically, ...
1
vote
1answer
106 views

Network with 3 locations connected through VPN; beginner

I already asked this question but i did not provide enough info, i am sorry for that so i drew a schematic of the network. I am a student IT (networks) first year, and i am making a fictional network ...
0
votes
2answers
141 views

Nginx redirect certain location to separate server

I am trying to separate our application server from our website gallery storage. I have an application server on xxx.xxx.xxx.1 and gallery server with all the images on xxx.xxx.xxx.2 . Now I want to ...
3
votes
3answers
2k views

nginx rewrite append a parameter at the end of an url

I need to configure my reverse proxy so that the following parameter will be added at the end of the url: &locale=de-de This almost works: rewrite ^(.*)$ $1&locale=de-de break; However, the ...
1
vote
1answer
247 views

Nginx location issue

I'm trying to set a longer (30 day) 'expires' header for my (images only) in the /misc-stuff/ directory. This is what I'm using for my site : # Serve static files directly from nginx location ~* ...
0
votes
1answer
301 views

Multiple protected locations with Nginx

I am trying to secure couple of locations using the basic HTTP authentication that comes with Nginx, but for some reason it won't work. I have: website.com/admin (This is accesible by user ADMIN) ...
1
vote
3answers
1k views

nginx Block IP based on URI in one 'location'

There is currently a block of one location / location / { root /var/www/docs; proxy_pass http://backend; proxy_buffering on; proxy_buffer_size 64k; proxy_buffers ...