The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
8 views

IIS - Two consecutive <siteid> numbers in a metabase “Location” path? Why?

I'm trying to understand the contents of an IIS metabase file. I can't access the server the file was taken from so it's really all I have to go on at the moment. The relevant Microsoft documentation ...
0
votes
1answer
18 views

Nginx + LimeSurvey:

I'm trying to secure my Limesurvey 2.0.5 admin page (running under Ubuntu 12.04, Nginx 1.19, PHP5.3.10, PHP-FPM). The admin page should only be accessible from a specific subnet so in my conf i used ...
0
votes
1answer
37 views

Fix Apache Virtualhost with Proxy Location

Given the following virtualhost: <VirtualHost *:80> DocumentRoot "/var/www/dashboards/public/dist" Servername local.dashboards ServerAlias local.dashboards Header add ...
1
vote
1answer
136 views

Location based whitelisting of IP's on nginx webservers behind Elastic Load Balancer

I run nginx webservers behind an elastic load balancer in AWS. The real IP is got through X-Forwarded-For. The issue faced is how to use this to deny all and whitelist only specific sources for ...
0
votes
2answers
143 views

nginx rewrite location not found

in Nginx config file, did set rewrite location like below but do not work and every time return 404 not found, what is the problem here? server { listen 80; server_name mydomain.com ...
1
vote
0answers
36 views

IIS virtual location path

Sorry in advance, for this seems to be a very noobish question and should be easily fixable, yet I can't work it out: I am setting up windows authentication for a website running on IIS 8.5: The Yii ...
1
vote
2answers
46 views

ip recognition is different

some months ago i bought a dedicated server from usa (http://www.dacentec.com/) datacenter. my ips are look like this : 162.248.243.blo blo blo when i check my ip in this site : ...
0
votes
1answer
197 views

How to tell Nginx to not rewrite URL's in selected location

I am writing some PHP CMS code with a clean url implementation in Nginx. To improve security of my code I want to rewrite all of the requests in my root directory / using the following type: rewrite ...
1
vote
1answer
385 views

nginx - specify different index file name for subdirectory

I want the directory index file in the root of my site to be index.html but within a subdirectory /foo I want it to be bar.html i.e. /index.html /foo/bar.html Also I want requests to /foo or ...
1
vote
1answer
79 views

Apache Location and Directory access

I have Apache 2.2 running on CentOS 6.4 There is application in / directory and folder where are some files, lets say it is /public. I need to allow access to / directory to ip1, ip2, ip3 and allow ...
-4
votes
1answer
29 views

Benefit of data locality

What are the benefits of having a server in a country X for users in X to download data from rather than having the users in X download from a server in country Y? Can you please provide sources of ...
-1
votes
1answer
44 views

Multi-tenant site and global privacy issues [closed]

I have a multi-tenant website. It has been hosted in the USA for many years with no problem. In recent years my customers in Australia, Canada and the EU have shared concerns as their countries ...
0
votes
1answer
67 views

alias directive with nested location to catch php files - requests for php files giving 404

I have a directory/web app that is located outside of the web root directory of my site. Say the site is here: /var/www/site/htdocs/ And the external app is located here: /var/www/apps/coolapp/ ...
0
votes
0answers
39 views

Nginx: Switch path depending on location

I'am very new to nginx and I have to realize a location switch. We have a single point of entry https://www.main.de/. At this single point of entry I have to split up the requests depending on the ...
2
votes
1answer
51 views

How do I get an Nginx non root ( “/” ) location to serve files?

I'm a Nginx beginner. I rented a little VPS with Ubuntu 12.04 to test. I rented no domain so I make requests directly using the ip. For this question let's assume the ip is 209.208.26.89. Installed ...
2
votes
2answers
1k views

nginx unwanted location redirect with trailing slash

I have a location location /pass/ { proxy_pass http://localhost:12345/; } So it is supposed to proxify urls http://example.com/pass/whatever to http://localhost:12345/whatever The thing I ...
1
vote
2answers
380 views

nginx - owncloud under location

I want to put owncloud under a location in my default virtual host. I also want to redirect to https. I have got it working with phpmyadmin but i can't with owncloud. This is the suggested ...
0
votes
0answers
87 views

Apache - Deny access for a sub-location

I have an apache server, and I have configured the location /rest To be open for everyone. Now, I want a sub-location to only allow access from certain IP addresses. I got it working, by doing ...
0
votes
0answers
47 views

Nginx - redirect to location inside PHP block

I want to redirect http://example.com/newsite/ using proxy pass to another server, so I put location /newsite/ { proxy_pass http://newsite.com/; } and it works fine. The problem is ...
-1
votes
1answer
36 views

Nginx alias redirection error

For one of my projects, I would like to setup a static domain to improve speed. I am faced with a small problem. I would like to redirect URL like this : http://mydomain.com/[URL]/img/toto.jpg to ...
1
vote
0answers
259 views

How to create an nginx rewrite to timthumb.php

I have a website that has many custom image sizes. I'm following this example which uses apache but I need to recreate this on an Nginx server. ...
0
votes
1answer
924 views

Nginx location override does not do what I want, opinions welcome

I have a Nginx configuration file that works for everything except one feature. I have installed a Mediawiki, it works pretty well except at showing pictures (loading them works fine). Whereas (sorry ...
0
votes
2answers
125 views

How to make fallback for images correctly?

I have the following location that handles my assets: location ~ \.(?:css|js|jpe?g|png) { root /var/static; } So if a request is www.mysite.com/img/file.png the file.png will be taken from ...
1
vote
1answer
329 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 ...
0
votes
1answer
500 views

Can we jump to another location from a location in nginx? [closed]

I am trying to achieve something like this: location /location1/{ if ($arg_api_key = a_valid_api_key) { proxy_pass http://localhost:8080; } # else jump to location2 } location ...
1
vote
2answers
243 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
55 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
1k 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
3answers
378 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
1k 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
411 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
244 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
508 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
1answer
224 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
157 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
198 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; ...
1
vote
1answer
737 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
46 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 ...
5
votes
3answers
1k 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
519 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
440 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
295 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
633 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
195 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 ...
2
votes
2answers
314 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
267 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
2k 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
1k 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
154 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
191 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 ...