-3
votes
0answers
32 views

What is the most appropriate control panel for virtual hosting behind Nginx? [on hold]

I have several domains on Digital Ocean hosting which runs behind Nginx server. I am using it mainly for python aps, but I would like to setup them with PHP as well. Python apps run behind Gevent ...
0
votes
1answer
43 views

configuring nginx server blocks

On CentOS, I have been using the default webRoot (/usr/share/nginx/html) until now to run my simple scripts and small applications. The other day, I had to configure nginx server blocks to run ...
0
votes
0answers
24 views

Configuring /etc/hosts to run an application [migrated]

I am using nginx, until now I was running my php applications on /usr/share/nginx/html which is the default document root when nginx is installed on centOS and like systems. Now I had to create ...
0
votes
1answer
39 views

NGINX Configuration issue

I have a issue with my nginx configuration. The problem is that it always use the proxy conf it never use the beta.node365-p.se conf. I want that if the requested domain is beta.node365-p.se the ...
0
votes
0answers
69 views

How to redirect a domain to a specific IP and port using nginx?

I have read several similar questions to this one in this forum, but not exactly the same, I tried every solution in very different ways but I am not able to manage this. I was given some data about ...
0
votes
1answer
82 views

Moving Zend Framework 2 from apache to nginx

I would like to move site that uses Zend Framework 2 from Apache to Nginx. The problem is that site have 6 modules, and apache handles it by aliases defined in httpd-vhosts.conf, #httpd-vhosts.conf ...
0
votes
0answers
172 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
142 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
24 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
256 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
115 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
78 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
228 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
208 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
178 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 { ...
1
vote
2answers
364 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
62 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
56 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
214 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, ...
5
votes
3answers
2k 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
95 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
147 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
279 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 ...
2
votes
1answer
807 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
33 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
552 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
390 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
72 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
198 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
339 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
229 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
89 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
264 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
1k 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
414 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
486 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
155 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
147 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
111 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
189 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
98 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
88 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
179 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
120 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: ...
-1
votes
0answers
407 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
298 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
829 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
421 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
593 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 ...