Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

learn more… | top users | synonyms (3)

2
votes
0answers
476 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
0answers
85 views

TTFB different between 2 identical virtual hosts on same machine

After almost 3 years of finding every answer on either StackOverflow or ServerFault, I'm finally stuck on one. I recently migrated our server from dedicated to VPS, and the problem now is that we have ...
2
votes
0answers
205 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 ...
2
votes
0answers
2k views

NameVirtualHost *:80 has no VirtualHosts

When I start httpd it says: NameVirtualHost *:443 has no VirtualHosts NameVirtualHost *:80 has no VirtualHosts I have however configured a virtualhost as followed: httpd.conf: Listen 80 ...
2
votes
0answers
141 views

Include virtual host for all subdomains

I'm using the below to set a client env variable which my system requires. SetEnvIf HOST "^(\w+).domain.com" CLIENT_ID=$1 UseCanonicalName Off VirtualDocumentRoot /home/user/clients/%-3/ I'm ...
2
votes
0answers
903 views

Virtual hosting in Varnish with individual vcl files for configuration

I wish to use varnish to put in front of an apache and a tomcat on the same server. Depending on the ip requested, it goes to a different backend. This works. Now for most of the sites the default ...
1
vote
0answers
23 views

Automatically add/remove entry to/from /etc/hosts when enabling/disabling apache2 virtualhost

When I create virtualhosts, I almost always forget to add an entry to /etc/hosts until I've attempted to check the site in a web browser and moaned about the oversight. What I want to do is modify ...
1
vote
0answers
28 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
0answers
82 views

Configure Bonjour for a custom vhost on Apache on OS X 10.9

How to broadcast all my vhost ? This has been answered for Snow Leopard, sadly the configurations files pointed in this thread are not there anymore in Maverick.
1
vote
0answers
370 views

Virtual hosts with port 80 & 443 not working

I can't figure out why I can't connect to my VPS. httpd.conf: i added: Listen 80 listen 443 NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> SSLEngine off ServerAdmin ...
1
vote
0answers
61 views

set document root for external calls

I'm using mod_userdir to set my document root to /home/user/server/public_html/ I also setup a virtual host that will redirect for the ServerName domain.com to ...
1
vote
0answers
95 views

Apache ProxyPass to custom port

The problem is following: I have an index.html file that is located under /www/site/ and I want to be able to serve all appropriate content from that folder under custom port lets say :8085. It is ...
1
vote
0answers
347 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, ...
1
vote
0answers
203 views

reverse proxy on apache for a single virtual host

Preamble: I've configured a publicly accessible server with multiple virtual hosts. The requests for one virtual host need to be sent to a backend server. All the other requests need to be served ...
1
vote
0answers
57 views

Custom Log Paths in Apache Virtualhost Config

On my local Windows LAMP Dev server, I set up test sites with the domains like this... http://projectName.dev http://www.projectName.dev I then have a simple program that also adds the appropriate ...
1
vote
0answers
123 views

Mass virtual hosting and subdomain

I'm trying to setup zero-config web-development environment: wildcard DNS plus dynamic virtual hosts. Here is my v-hosts config: NameVirtualHost *:80 <VirtualHost *:80> ServerAlias *.dev ...
1
vote
0answers
112 views

Apache: block file access outside Document Root

I manage with easyphp numerous sites locally, for convenience and speed. I config with Apache an Alias for each site: Alias "/site.com" "C:/Work/site.com/Dev" <Directory "C:/Work/site.com/Dev" ...
1
vote
0answers
34 views

VirtualHost triggers strange error on Apache

I have set up an Apache Webserver and I own a domain. I also installed a database and PHP, so I also use PHPMyAdmin as database administration software. Now, I want to put PMA out of the webroot so it ...
1
vote
0answers
89 views

Named virtual host on Debian Squeeze only serves the default host

I am trying to setup my own virtual host on Debian Squeeze and I think I have done the setup as per the documentation and have gone through a number of questions and answers. Everything seems to ...
1
vote
0answers
75 views

Apache VirtualHost options with ePages e-commerce solution

I have a Centos server running ePages (which runs on Apache). Now I want to use the same server to host a couple of other sites as well, but I can't seem to get my configs working correctly. I'm not ...
1
vote
0answers
222 views

Mixing Redmine and custom authentication method in a single apache virtualhost for Redmine

I developed on Redmine a plugin to automatically log users using the REMOTE_USER given by Apache when its Kerberos ticket is accepted. This plugin works as long as the user has a corporate login, but ...
1
vote
0answers
67 views

Is it possible to write a shared config for several VirtualHosts?

My intent here is avoid a lot of repetitive code. Essentially what I'm trying to do is use the same block of SSL config for several VirtualHost entries... <IfModule mod_ssl.c> <Directory ...
1
vote
0answers
156 views

proxy ajp single apache single glassfish multiple GF domains

I'm sorry if I am not well versed enough to be as specific as some would wish here. I have successfully got Apache mod_proxy_ajp working with Glassfish 3.1.2 on a VPS. However it is one Apache httpd ...
1
vote
0answers
236 views

Dynamic virtual host configuration in Apache

I want to make a virtual host in Apache with dynamic configuration for my websites. For example something like this would be perfect. <VirtualHost *:80> AssignUserId $domain webspaces ...
1
vote
0answers
133 views

apache2 server running ruby on rails application has go daddy cert that works in chrome/firefox and ie 9 but not ie 8

I have a rails application up on a linode ubuntu 11 server, running apache2. I have a cert purchased from godaddy, (where we also bought our domain) and the cert is installed on my server. Part of my ...
1
vote
0answers
76 views

Removed and then reinstalled php-common via yum. Now no virtual hosts?

Using yum I wanted to install the php-gdlibrary, however there was a dependency issue with php-common preventing me from installing php-gd. So after some digging I found this article on SO. I followed ...
1
vote
0answers
63 views

Apache serving first domain, despite NameVirtualHosts and ServerName being set

Apache's NameVirtualHost has been configured in httpd.conf as such: NameVirtualHost *:80 However, the sites are still defaulting to the first virtual host, despite the VH configs looking correct. ...
1
vote
0answers
119 views

How to monitor bandwidth on host which uses bridge-util and virtualization

I am running a debian squeeze box with bridge-util and LXC containers. I guess this is a 2 part request. I would like to know what my total bandwidth usage is I would like to see it broken down by ...
1
vote
0answers
203 views

Redirect incoming traffic for a domain to another local ip on same host

I have a server running Win 2008 R2, on that machine a run virtualbox where I run multiple ubuntu instances for webservers. I also have a router that redirects all traffic on port 80 to that machine. ...
1
vote
0answers
119 views

mixing apache2/another web server, virtual apps and static content

I am unable to configure apache2 frontend proxy to other servers and also serve apache2 content. My intent is to have apache2 serve some static content and some dynamic apps, both with domain names ...
1
vote
0answers
306 views

associate dhcp requests with subdomains in dnsmasq

I have dnsmasq running as a dns server with a number of linux boxes using static ips that run several virtual hosts on subdomains. I currently have the following address line in my dnsmasq.conf to ...
1
vote
0answers
446 views

Coldfusion deployment under Apache Tomcat with Virtual Hosts

I'm looking for the proper way to share the Coldfusion engine for all my Virtual Hosts. This is how I have the virtual hosts configured on server.xml in the Tomcat conf: <Host ...
0
votes
0answers
37 views

Nginx + Apache + PHP-FPM, VirtualDocumentRoot not working

I'm having a webserver with Nginx (1.7.10) is front of Apache (2.4.12), everything is fine until I used VirtualDocumentRoot for mass virtual hosting. I got this error in the log: [Fri May 15 ...
0
votes
0answers
12 views

https passthrough in Apache

Every HTTP or HTTPs connection i have is received by an apache (lets name it as "SERVER A") that acts as router that redirects to other internal computers that holds other apache service. Recently ...
0
votes
0answers
26 views

Is it good or bad to have dynamic virtual hosts configuration in Nginx?

I have a dozen sub-domains hosted in a single server using Nginx. Currently I am using a single configuration like this: server { listen 80; server_name *.example.com; root ...
0
votes
0answers
19 views

Redirecting ServerAlias root to some sub-directory with Apache

I have the following Apache VirtualHost configuration: <VirtualHost 192.0.2.1:80 [2001:DB8:4007:80d::200e]:80> ServerName app.example.com ServerAlias foo.example.com ServerAlias ...
0
votes
0answers
36 views

Apache swapping virtual host entries each request

I have the following httpd.conf. Based on the different domain, it should route the request to the appropriate entry showing a different site based on a similar code base. The problem is that it ...
0
votes
0answers
16 views

Trouble accessing FTP internally

I am currently running OS X Server 4. I have multiple websites (virtual hosts) set up with it. Lets call them domain1.com and domain2.com. Internally, they are both being run off of the same IP. ...
0
votes
0answers
29 views

Apache HTTP to HTTPS Redirection on none HOST NAME

I'm not able to get a corect redirection from http to https on every url on my Apache on Centos. I got this in the httpd.conf: LoadModule rewrite_module modules/mod_rewrite.so NameVirtualHost *:80 ...
0
votes
0answers
83 views

virtualhost don't redirect to tomcat apache 2.4

I'm trying to redirect a specific domain to a application that runs on a tomcat server. My apache (2.4) runs on Ubuntu Server 14.04 and I really tried every answer here on stackoverflow. Most of them ...
0
votes
0answers
27 views

Can Windows System Resource Manager work in virtualized environment?

I'm trying to limit the working set of a process using WSRM on Windows Server 2008R2, running in a virtual environment hosted by our IT provider. I currently don't know which virtualization technology ...
0
votes
0answers
46 views

Testing samba performance with Virtualbox

I have set up a VM in Virtualbox to test the effects of samba configuration changes in terms of read/write transfer speed. But successive read transfer speeds have sometimes more than 10 Mbps ...
0
votes
0answers
19 views

Virtual Host showing error 11001 even after chown and chmod

I am trying to create a virtual host to just test a basic html website. Guest OS - Ubuntu 14.04 Host OS - Ubuntu 14.10 In the Host OS, I connect through a proxy server which requires me to enter a ...
0
votes
0answers
105 views

Dynamic Subdomain with htaccess unchanged URL

I have a Codeigniter project Located at "domain.com/users/abc" directory. I want to access it with Subdomain "abc.domain.com/" and also I don't want the url in the address bar to change. There will ...
0
votes
0answers
15 views

apache2 point folder to subdomain

I need to point domain.com/chat to chat.domain.com. So, when I access domain.com/chat I want to see the same thing as when I access chat.domain.com. My virtualhost for this looks like below. As you ...
0
votes
0answers
79 views

nginx catchall reurns bad gate way with $host in proxy_pass

I am currently using the following virtual server proxy setup on my development environment the defined virtual servers work fine but i am coming up with a bad gateway error when i hit my catchall ...
0
votes
0answers
18 views

mod_jk mount is being bypassed by virtualhost rewrite rule

I have apache 2.4 and tomcat 5 configured with mod_jk. My webapp "dealernet" could be accessed without the port 8080 suffix directly at http://prefixa.mydomain.com/dealernet/login/login.do and life ...
0
votes
0answers
30 views

Combining a 301 and aliases in Apache VirtualHost blocks

I manage (just about) Apache and VirtualHosts for the server and am trying to determine the most efficient and SEO-friendly method for a client with: an old domain/dirs/ that needs a 301 to a new ...
0
votes
0answers
124 views

How to configure apache + php-cgi on CentOS?

I have a Cent OS 6.6 server with Apache + mod_php site (site1.local). I need to configure second site (site2.local) with php_cgi. So, I created a user, gave him permissions on www-folder, configured ...
0
votes
0answers
146 views

Replace all URL's based on hostname using Apache 2.2

I am setting up local testing environments for my team. Each of us have our own subdomain that points to our machines on our internal network. In the code, the URL's are all written with the www ...