0
votes
0answers
6 views

Virtual Host Redirects and Packet Flow [migrated]

If I set up a virtual host in nginx, will all packets flow through that PC? Here is what is going on. I have an openwrt NAT router with two devices behind it, a server and a raspberry pi. I want both ...
0
votes
0answers
30 views

Configure Nginx with multiple lxc containers, virtual hosts and subdomains

I want to use multiple (at least 3) lxc containers running Apache2 on port 80. I want to configure Nginx such that www.mydomain.com serves the content on the host machine while sub1.mydomain.com , ...
0
votes
0answers
46 views

I can't set virtual hosts with nginx 1.6

I'm trying to set further virtual hosts on my nginx server. But only the ones created on nginx 1.2 work and if I try to add other virtual host , it redirects to default configuration where I have the ...
1
vote
0answers
18 views

Make nginx config like apache2 virtualhosts

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
1
vote
1answer
47 views

Location directive not working

For my NGINX server I have a virtual server set up just to dish out static content. At the moment I'm trying to set it up so that images have an expiry date. However, when I create a location ...
0
votes
1answer
88 views

Nginx multiple virtual host isn't working

I already have a Working nginx installation for my local development in my Computer. So i was thinking about adding another virtual host for a new project. Here is the Existing Virtual host file AKA ...
0
votes
1answer
72 views

Can't configure Nginx on Ubuntu 13.10 to work with Subdomains and main domain name

I am new to Nginx, switched 2 days ago from Apache. With Apache my website had 1 main url (www.example.com & example.com) and 2 subdomains (s1.example.com & s2.example.com). I succeeded to ...
0
votes
1answer
133 views

Using Puppet with complex Nginx VirtualHosts

I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues. I know I can use ...
0
votes
0answers
146 views

Nginx Virtualhost; Can't Add Simple Rewrite Rule

I've come up with this pretty handy Nginx virtualhost file for a PHP Codeigniter site. It works as-is, but I'm trying to do additional rewrites and I'm not having any luck. server { listen 80; ...
0
votes
1answer
115 views

Configuring nginx virtual hosts

I'm having trouble configuring nginx virtual hosts on a Debian GNU/Linux 7 (wheezy) machine. All I get is a 500 Internal Server Error. Here is an example of my vhost_autogen.conf file: server { ...
0
votes
2answers
187 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 ...
1
vote
2answers
58 views

Make NginX serve different pages depending on the IPv4 encoding base

You can access google on 186.215.155.54 , 0xBAD79B36 or 3134692150 (remember to put http:// before if you want to try). How is the base conversion handled by the browser? Is there any way for NginX ...
0
votes
1answer
45 views

Open Ip/folder in Nginx

I want to open a website with no domain name from IP/folder_name Each time I try to access the website , I get redirected to an other website on the same server : Here is my default configuration : ...
1
vote
0answers
154 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
2
votes
3answers
774 views

Multiple SSL vhosts using wildcard certificate in nginx

I have two hostnames sharing the same domain name which I want to serve over HTTPs. I've got a wildcard-SSL certificate and created two vhost configs: Host A listen 127.0.0.1:443 ssl; ...
0
votes
2answers
76 views

cannot set a virtualhost name with nginx

this is what I did with the standard nginx.conf if I use port boo.dev:8060 I have no problem, but if I do localhost or it's alias it always downloads something? I cannot seem to set a virtualhost ...
2
votes
1answer
110 views

Setting up custom error pages for nginx with https and virtual hosts

We have an nginx (OpenResty 1.4.2.7) instance acting as a load balancer. It has two server directives, one to serve one specific site (let's call it www.our-special-host.com) and one wildcard for ...
0
votes
1answer
249 views

nginx - show different page when ip address is given instead of domain name

I have installed on my vps nginx with ISPConfig3. I created a domain mydomain.com through ispconfig and everything works just fine except two things. When i go to the ip address of my vps, my ...
1
vote
1answer
466 views

How to do dual stack IPv4/IPv6 with virtual hosts on nginx 1.4

I'm using nginx 1.4.1 (now, before it was 1.2.1) and would like to support dual stack (IPv4 and IPv6). I'm always getting duplicate listen options for xyz errors from nginx. server { listen 80 ...
0
votes
1answer
30 views

Nginx server blocks matching on ip

I have two IPs mapped on my host: 1.2.3.4 and 11.22.33.44 ("fail over" IP) I'm working on a website that don't have a domain name for now. I'd like to serve it under 11.22.33.44 until I have a ...
0
votes
1answer
384 views

Symfony2 app in subdirectory of nginx configuration

I'm trying to set up my environment such that surveyadmin.local points at one directory and surveyadmin.local/api points at another. However, no matter what I change, the /api URL always results in a ...
0
votes
1answer
318 views

WordPress 3.5 Multisite and nginx siteurl issues

I'm setting up multisite on localhost in subdirectories. The problem is that when I'm trying to access the dashboard of a site I just created ( localhost/wptest/site/wp-admin ) I get "This webpage ...
0
votes
1answer
64 views

ngninx Configuration for dynamic (sub)domains

I'm trying to configure nginx in a way that will mean less fiddling later down the road. I don't want to have to create a config file for each domain and sub domain, I want a single configuration ...
1
vote
1answer
157 views

Virtual DocumentRoot configuration for both WWW and non-WWW - WITHOUT redirect

I have searched a lot but can't find an answer When you setup Dynamic Virtual Hosts in Apache, you do something like this: RewriteEngine On # a ServerName derived from a Host: header may be any ...
1
vote
2answers
298 views

making all subdomains use same document root with nginx

I have in the *.conf file for my domain the following: server { listen 80; server_name domain.tld; access_log /var/log/nginx/domain.tld.accesslog; root /var/www/domain.tld; index ...
0
votes
1answer
191 views

NGINX config help, Multiple Servers

I am having an issue with NGINX , this could quite possibly be an easy fix then again could not be I just don't know that much about NGINX. I have my NGINX config below which works great. But I have ...
0
votes
0answers
86 views

Nginx vhost configuration error

i'm having around 800 sites on an nginx server. All these vhosts are defined within one file that is included. You can see some examples of vhosts below (the other 800 looks exactly the same except ...
0
votes
1answer
180 views

Cannot execute PHP file from domain name

Server run on Amazon Linux AMI** (similary to redhat) I follow the installation from Install PHP-FPM, Nginx, & MySQL on EC2 with Amazon Linux AMI It's work properly if I call directly from server ...
0
votes
1answer
956 views

How to point 1and1 domain to no-ip hostname

I have a linux server hosting several virtual domains using Nginx. My ISP provides a dynamic IP and I am trying to avoid paying extra for a static IP. I am experimenting with a domain name purchased ...
1
vote
1answer
338 views

phpMyAdmin rewrite for nginx

I am trying to configure Nginx so that I can access PhpMyAdmin from a subdirectory (aka domain.com/phpmyadmin). The code provided below seems to work for me although I don't want the alias to be ...
0
votes
1answer
421 views

Nginx reverse proxy to apache not matching VirtualHosts

I have 2 sites, Main.com and New.com. I switched over from Apache to Nginx in front of it, and it worked well for Main.com, but it seems the Virtualhosts aren't working right, since a request for ...
1
vote
0answers
137 views

nginx does not respect “root” directive

I'm running an EC2 instance with Ubuntu and trying to setup virtual servers for two domains without luck and cannot figure out why. My web documents are located in /var/www/<domain> and ...
0
votes
1answer
137 views

Unable to run multiple sites on Nginx

For the first time today, I am trying to run Nginx. I have to run 2 websites built in Symfony 1.4 and Symfony 2.1. The nginx configuration file is http://pastebin.com/rFBqBaaM. The server blocks are ...
1
vote
1answer
105 views

Is there a way that nginx can deliver a site if the connection comes from a specific user

I'm looking for a way to set a parameter in my browser or some sort of token that allows nginx to select the site that is going to serve. I wish to put the configuration in the nginx sites-enabled ...
0
votes
1answer
161 views

One server running Django (with Nginx and Apache) and Wordpress Blog

I have nginx listening to port 80 for my primary site foo.com. It proxys to port 8080 which is where the Django app lives server { listen 80; server_name www.foo.com foo.com; access_log ...
0
votes
2answers
97 views

Virtual Host vs rewrite for subdomain

Is there a best practice (for performance reasons or otherwise) for choosing between using a Virtual Host or rewrite for pointing a subdomain to a folder in the root directory? I.e., www.domain.com ...
0
votes
1answer
86 views

Use shared 404 page for virtual hosts in Nginx

I'd like to have a shared 404 page to use across my virtual hosts. The following is my setup. Two sites, each with their own config file in /sites-available/ and /sites-enabled/ www.foo.com ...
0
votes
2answers
176 views

nginx on :8080 pointing to all domains

ive installed redmine on a subdomain per the instruction here > http://library.linode.com/web-applications/project-management/redmine/ubuntu-10.04-lucid Its actually not working yet but another story. ...
0
votes
1answer
103 views

nginx server setup issue

I have to setup Kayako server on a centOS 6.3 machines.. I installed nginx with php5.3 and other required stuff, everything is working. So I copied kayako files to: ...
0
votes
0answers
375 views

kayako setup nginx virtual host

I have to setup Kayako server on a centOS 6.3 machines.. I installed nginx with php5.3 and other required stuff, everything is working. So I copied kayako files to: ...
2
votes
1answer
285 views

How to set up my Linode server to run multiple programs on different subdomains?

I just got a linode account and some domain names. With these raw materials in hand, here is what I'd like to do: example.com -- static hosting gitlab.example.com -- install gitlab here ...
1
vote
2answers
1k views

nginx ignores my include directive?

I'm currently migrating from Apache to nginx. I have a couple of domains that are going to be hosted on the same machine with one IP address. Though I've configured nginx --prefix=/my/path it seems ...
3
votes
4answers
707 views

Nginx. How do I reject request to unlisted ssl virtual server?

I have a wildcard SSL certificate and several subdomains on the same ip. Now I want my nginx to handle only mentioned server names and drop connection for others so that it'd look like nginx is not ...
1
vote
1answer
398 views

Nginx directory aliasing incorrectly passing to fcgi

I have a website virtual host, example.com, which is statically served out of /home/erealms/www. However, the website runs through a series of perl scripts, which are located in various directories. ...
0
votes
2answers
497 views

Running multiple Rails apps under different sub-URI's for same domain using nginx

I was able to successfully configure nginx and passenger phusion. I now have the following configuration server {listen 80 server_name **sub1.example.com** root /home/user/app1/public } server ...
1
vote
2answers
317 views

How to configure nginx to serve single named virtualhost, aside of apache

I currently have a single apache server with several named virtualhosts defined there, all serving on the same IP, on port 80. However, I have one static virtualhost (a specific domain) I want to ...
2
votes
1answer
2k views

nginx custom 404 error page for virtual host

I'm running a few virtual hosts off nginx, and I would like them to each have their own custom 404 pages. Each virtual host has their own nginx.conf that I include my global nginx.conf. Inside the ...
1
vote
2answers
1k views

All Nginx Virtual Hosts redirect to one VHost

I've about 4 different hostnames defined in the sites-enabled/domain.tld files. Each of the files are in the following fashion: #Redirect everything to the main site. server { server_name ...
0
votes
0answers
581 views

nginx virtual host not found

I'm trying to setup a cakephp development enviroment with nginx. The nginx + php was successful instaled since I get the right response from phpinfo(); But when I try to setup a virtual host located ...
4
votes
1answer
196 views

see all active virtual hosts in nginx?

In apache2, I can see all the active virtual hosts by doing apache2ctl -S. This is useful since I don't need to plough through the config files, and also if I have made changes to the config files and ...