0
votes
1answer
18 views

ngnix vhost setting (with apache) not pointing to my domain

i'm trying to use nginx as proxy for my apache all vhosts. i've set up a config file at /etc/nginx/sites-available/mydomain and i'also created sym link by using a command ln -s ...
0
votes
2answers
856 views

nginx default server not working

I'm using Debian, most recent dotdeb nginx-lite. I've read that the first server section found by nginx will be used as the fallback/default section used if there is no specific server section for a ...
1
vote
1answer
108 views

Why the nginx doesn't respond to domain names?

I have nginx with following vhosts: A gitlab vhost: server { listen 443; server_name gitlab.mydomain.com; # e.g., server_name source.example.com; server_tokens off; # don't show ...
1
vote
1answer
114 views

nginx as proxy multiple vhosts

Runing Windows Server 2008 R2 nginx on port 8080 Apache on port 80 Apache is hosting 5 websites configured within the directive. I'm trying to configure nginx as proxy in front of Apache, (I'll ...
0
votes
1answer
265 views

Redirection issue with multiple domains in nginx

I'm having redirection issues when I try to access DomainB on my browser, for some reason I get redirected to DomainA, what could be going on here? (This is my sites-available folder) Btw I removed ...
-1
votes
1answer
58 views

VIrtual hosts for wild card domain not working

I have configured apache to run alongside with nginx on port 8080. For some odd reason, I also have a wildcard domain defined at my DNS server, I've checked it, and it works(zazazazzaaaz.mysite.com ...
0
votes
2answers
662 views

Cant get access to phpmyadmin with nginx under debian “No input file specified.”

I've installed Nginx, php-fpm, mysql and phpmyadmin.. When I type myserver.com I see "Welcome to nginx!". But when I type myserver.com/phpmyadmin, I got : "No input file specified. ". I know it's ...
0
votes
1answer
147 views

Investigating a phishing complaint

UPDATE: Seems it was a fake email, so not really that urgent, but the questions are still valid. So I received an email about a VPS I host (I'm a VPS hosting company, this is a customer VPS) being ...
0
votes
1answer
74 views

nginx: how to overwrite one directive

I'm trying to organize my vhost configs in several files, so that there is a view basic files / "templates" and the rest just include them and overwite settings as needed. Here is described, how the ...
3
votes
4answers
598 views

Nginx rewrite rule “^/([a-z0-9]{32})\.png$” not working (used to work on Apache)

I have these rewrite rules (I tried both with no avail): location ~* "^/([a-z0-9]{32})\.png$" { rewrite ^ /index.php?page=log&id=$1 last; } and location ~* ...
1
vote
0answers
125 views

Is there any soft / hard limit on the number of virtual hosts that Nginx can handle?

And what are performance implications? Is it practical to host tens of thousands of vhosts on one Nginx instance? How much would the increased latency be? We plan to offer custom domains for users, ...
0
votes
1answer
172 views

Nginx: Serve an application from a subdirectory of the root-dir

I'm trying to migrate an application (or its .htaccess-files) written for Apache to Nginx and I've come across a problem I just can't wrap my head around. I'm from an Apach environment, so this is ...
1
vote
1answer
98 views

How to define two servers on different IPs in nginx?

Here is the problem: I have two domains which have pointed to two available IPs on a server. Say: siteone.com pointed to 1.2.3.4 sitetwo.com pointed to 1.2.3.5 What I did to configure nginx vhosts ...
2
votes
1answer
1k views

Best way to prevent default server?

I have a number of vhosts, and I'd like to "turn off" the default vhost, either by blank page, error page, or generally whatever is the most efficient use of Nginx's resources, whilst only allowing ...
2
votes
1answer
46 views

Access all websites on a server via a shared domain

My setup is: Nginx(80) as a transparent proxy Apache(81) as back-end web server The paths to each domain on the server are like this: /var/www/$username/data/www/$domainname Of course to access ...
1
vote
0answers
109 views

Why this vhosts configuration keeps redirect other domains to one

I'm trying to add a second domain to nginx. It's ok to access static files like css in domain2.com but visits to php scripts (e.g domain2.com/index.php) will be 302 redirect to domain1.com (e.g ...
2
votes
1answer
432 views

Website on nginx server requested from subdirectory

we have two nginx servers. The first server receives a request via www.example.com/partner. He sends the whole request to the second server which has php+fastCgi configured. Nginx access log from ...
1
vote
2answers
144 views

nginx vhost config

This is my config file for nginx to allow it to respond only to domain1.com, and not domain2.com server { server_name .domain1.com; root /var/www/; #charset koi8-r; #access_log ...
3
votes
1answer
3k views

How do you set server specific ENV values in Nginx?

I am starting a project that uses environment variables to set the database connection and a couple other things. (They didn't want to use configuration files since people are careless and overwrite ...
0
votes
3answers
251 views

Apache rewrite on Nginx

I have following .htaccess file DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^$ index.php [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
1answer
128 views

Setting up a secure instance of nginx on Debian 6

I have worked with and setup Apache before, but never nginx. Could anyone point me to a good guide that describes how to setup and run nginx for multiple website (vhosts, I suppose) support. I want ...
3
votes
1answer
77 views

Webserver vhost configuration in database?

I know it's possible with lighttpd, but is there a way to achieve the same thing with Apache or better yet, nginx?
0
votes
1answer
166 views

Nginx vhost configuration questions

I have a NginX vhost, where all static content is served by nginx and anything that's not found or ends with php proxies to apache. Just wanted to check if I have locations right: location / { ...
16
votes
1answer
5k views

nginx name-based virtual hosts on IPv6

I have an nginx server serving up nearly half a dozen different websites. It's running on a Linode that just got IPv6 native support (Dallas data center), and I'm trying to configure most of my sites ...
4
votes
2answers
6k views

Wildcard vhosts on Nginx

I've just installed Nginx on my server and am extremely happy with the results, however I still cannot figure out how to insert wildcard virtual hosts. This is the [directory] structure I'd like: -- ...
1
vote
1answer
910 views

nginx virtual hosts are not working, all vhosts goes to the default one

I just did a clean install of nginx + php-fpm on a VPS running Ubuntu 10.10, nginx is serving and PHP is working fine, but I'm not able to add vhosts to it. Well, I can add them, but only one works, ...
1
vote
0answers
167 views

Nginx response trouble when aliasing to a specific file with regex

Basically, I'm trying to handle nice URLs mapped to actual HTML files on the server. I have URLs like so: /posts/nice-blog-post/ That need to return an HTML file on the filesystem like: ...
0
votes
1answer
922 views

Where to define the root directive in nginx.conf

I have a question concerning the setup of nginx on a server handling different virtual hosts. I am now a bit confused where the root directive should be. I have seen the following two possibilities. ...
0
votes
1answer
212 views

Nginx server matching too many URLs

I've got a domain example.com and an "alternative" of some-example.com. I'm trying to direct traffic from some-example.com to example.com using a simple server declaration in nginx as follows: server ...
1
vote
4answers
255 views

using vhosts internally without a DNS

I need to serve a large number of websites on the same machine. I'll need to be able to add and remove websites dynamically. Internally, the web server needs to think that the request arrived from a ...