0
votes
0answers
17 views

Correct rewrite rules from Apache to Nginx? [closed]

I'm having quite a difficult time translating some .htaccess rules to Nginx. My .htaccess codes are: RewriteEngine on Options -Indexes RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ ...
1
vote
1answer
30 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 ...
0
votes
2answers
98 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
63 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
49 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
85 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
211 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
100 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
149 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
71 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 ...
1
vote
0answers
58 views

NginX replies to undefined port

I've an Nginx as a reverse Proxy for static content. And an Apache for dynamic content. I wanted to change the port for my PMA virtualhost to 81: server { listen 81; server_name ...
0
votes
1answer
87 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
53 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
98 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
0answers
62 views

nginx virtual host don't work on the network

so I've installed nginx under centos 6.3 on a server. It's correctly installed as I type the ip from the server and the default nginx page loads correctly. So I tried to add a subdomain but when I ...
0
votes
2answers
73 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
71 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
146 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
72 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
228 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
209 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 ...
0
votes
2answers
513 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 ...
1
vote
3answers
340 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
306 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
1answer
315 views

Configuring Virtual Hosts - nginx and passenger phusion on Ubuntu

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
240 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 ...
1
vote
1answer
1k 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 ...
0
votes
2answers
784 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
357 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
141 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 ...
0
votes
1answer
192 views

Detecting the correct Nginx virtual host

I recently installed Nginx onto an Ubuntu 10.04 machine to try to learn how to use it over Apache. I installed using aptitude. I correctly set up a virtual host under /etc/nginx/sites-available and ...
1
vote
2answers
138 views

Setting up a server with only subdomains, any connection to top level goes to main server on another IP?

I'm developing a web app where users will have their own sub-domain to login to and use the application. I'm running wordpress for the main website to manage the public / front end. Our application is ...
2
votes
2answers
186 views

nginx www.domain.com vs domain.com virtualhost

I have an http block where I include virtual hosts for the different domains hosted on the same server. For each virtual host I do: listen domain.com:80; Now, domain2.com works fine. However, when ...
0
votes
1answer
614 views

nginx dynamic virtual hosts

With nginx is there a method to setup mass dynamic virtual hosts similar to the way apache2 can be configured? I'm setting up an saas application each user will have their own subdomain and i'd like ...
1
vote
1answer
211 views

Performance implications of multiple Virtual Hosts in Apache?

The suspicion may be completely inaccurate, but my guts tell me running multiple <VirtualHost>ServerName site.domain [...]</VirtualHost>-statements on the same Apache server (same ip) ...
0
votes
0answers
137 views

Adding “Virtualhosts” to nginx

I'm creating a system where users have their own website on my server with a custom domain, upon an input they desire, e.g. {username}.domain.biz On one condition, the main domain is domain.org, ...
5
votes
3answers
4k views

How to set a favicon.ico for a specific Virtual Host on Nginx?

I am using Nginx as my webserver for the first time. I didn't have any trouble to set it up and everything works great. The problem came when the designer asked me if he could send me "the icon in the ...
0
votes
1answer
128 views

Nginx and Frog CMS admin url

Short background - there is a site (powered by Frog CMS) hosted on VPS with Apache installed. To cut costs a bit, I've moved to another VPS hosting with cheaper plan. I've installed nginx, php-cgi ...
0
votes
3answers
387 views

Forward requesting IP from Nginx to Apache's logs

I'm using nginx as a front end reverse proxy for Apache, I have the following configuration inside of nginx: location / { if (-f $request_filename) { add_header X-Static hit; access_log ...
0
votes
1answer
157 views

Virtualhost for nginx

I have installed nginx 1.0.3 using the following procedure: apt-get install libpcre3-dev build-essential libssl-dev cd /opt/ wget http://nginx.org/download/nginx-1.0.3.tar.gz tar -zxvf ...
1
vote
2answers
89 views

Is it Ok not to have default virtual host in Apache or Nginx?

The title pretty much sums it up. Do I need to have a default vhost in Apache or Nginx?
0
votes
1answer
83 views

My www version of site is redirecting to the non www version of another site on the same nginx server

I have two domains setup on one server running LEMP. When i access the domain2.co.uk everything is fine. But when I go to www.domain2.co.uk it is redirecting to www.domain1.co.uk nginx.conf ...
0
votes
1answer
2k views

Nginx Multiple Domains

I am trying to add a second virtual host to nginx. When i go to the new domain it redirects to the old one. I have tried restarting Nginx, rebooting the server. Has anyone come across this before, ...
1
vote
1answer
723 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, ...
0
votes
1answer
456 views

virtual host and IP address mapping

I have a rackspace server running with nginx. I am a newbie to all the server stuff. Let me explain the situation here: I have an IP address and I have two virtual host on my machine. I don't have ...
0
votes
1answer
645 views

nginx virtual host

I am confused of understanding the concept of virtual host in nginx server... so basically this is used for multiple websites in the nginx server. Part of the tutorial is below: It shows there that ...
1
vote
2answers
423 views

virtual host from IP address

if I don't have an domain and what I have is IP address.. how can I create a virtual host? can someone give me an example of a nginx.conf file?
0
votes
1answer
184 views

help with virtual hosts on ubuntu

I was just following the tutorial here. It says there: This will create the virtual host file for Nginx in the sites-available directory. Simply paste the following into the file and change each ...
0
votes
3answers
2k views

How to make Nginx virtualhosts work? (currently gives 403 Forbidden error)

I want to run nginx on my Ubuntu 10.04 32bit Linode VPS. sudo chown -R www-data:www-data /var/www sudo chmod -R 775 /var/www sudo add-apt-repository ppa:nginx/development sudo apt-get update sudo ...
2
votes
1answer
2k views

Mixed IP and Name Based Virtual Hosts with nginx

I set up many domains but I dont know how to configure if only ip address is given. say foo.com I have a setup to go web/foo.com/htdocs, I want to 88.99.66.55 ip address like a domain to ...

1 2