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
48 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
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
133 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 ...
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
0answers
53 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
265 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
48 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
72 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
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, ...
1
vote
0answers
125 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
47 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
105 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
77 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
32 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
86 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
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 ...
1
vote
0answers
67 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
197 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
60 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
140 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
209 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
123 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
75 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
61 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
214 views

SetEnvIf unset variable not working

I would like Apache (version 2.2.3) to log according to the following rules: Do not log internal calls to self (127.0.0.1). Log access to /provisioning/ to provisioning_log. Log access to other ...
1
vote
0answers
718 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
111 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
194 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
113 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
286 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
436 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
4 views

Creating subdomain for domain which is on a dedicated IP

I am not sure if this question belongs here. I have got a new server. It provides three IP addresses. There is a DNS manager where I can setup domain name at a particular IP. Done successfully, and ...
0
votes
0answers
9 views

Example Mod_proxy virtualbox

sorry for my bad English, I'm gonna try to explain my problem.... I have to do a configuration of Apache for school. I want create a web server model with three host. I have three virtual machine on ...
0
votes
0answers
21 views

Redirect between two Apache virtualhosts using the same hostname

I have a server based in Europe which runs Apache with several virtualhosts on the same IP address. Now I want to set up another server based in United States in order to host the same virtualhosts as ...
0
votes
0answers
11 views

Jetty: set up general host

How can i force Jetty to open all deployed webapps starting from specific virtual host like test.localhost:8080/myapp instead of localhost:8181/myapp? Here's snippet from jetty.xml: <Call ...
0
votes
0answers
19 views

Munin showing apache accesses per virtual host

I have different NameVirtualHosts defined in Apache2 running on debian wheezy. Munin is running and is showing me the apache accesses on "port 80". Every virtual host is writing its own log files and ...
0
votes
0answers
11 views

apache2 deny OPTIONS methos in virtualhost config

How to deny the requests with method OPTIONS and PROPFIND in apache virtual host config. Now I have: <VirtualHost **********:80> ServerName ******************* <Location ...
0
votes
0answers
24 views

Specific Virtual Host not responding

I have a bare-bone CentOS 5.6 server, running apache, and serving two websites, http://soccernmoore.com and http://evosoccerprograms.com, all of a sudden, im having trouble connecting to the ...
0
votes
0answers
45 views

Set up dynamic virtual host subdomains on WAMP

To streamline web dev, I want to be able to quickly switch between development branches of a project, using subdomains on my WAMP server. e.g. If my WAMP directory structure is like so: C:\wamp\www ...
0
votes
0answers
31 views

2 virtual hosts, 1 server, 1 with dns and 1 without

I have one Apache server from which I would like to host 2 sites, one has currently got DNS records propagated and the other currently does not. in sites-enabled, I have the following ...
0
votes
0answers
104 views

Virtual Hosting on Centos 7

I'm trying to set up Virtual Hosting on my server which is running Cent OS 7. I have done the following but it is not working: created a file called called vhost.conf in /etc/httpd/conf.d Add the ...
0
votes
0answers
55 views

Apache 2 forward request IP address to virtual host

I am having an Apache server which is running on port 80 and a Tomcat server running on port 8080. I am forwarding the requests coming for a certain domain to Tomcat using a virtual host in Apache ...
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
0answers
35 views

Replicate server environment and directory structure using Vagrant

I am a developer by trade but am not used to configuring VM's and servers, so I apologize if these questions seem rather novice. I have recently started trying to use Vagrant for local development of ...
0
votes
0answers
47 views

ec2 instance access via browser on subdirectory not working

I try to access a subdirectory via public dns vom amazon. I configured a virtual host: DocumentRoot "/var/www/html" NameVirtualHost *:80 <VirtualHost *:80> ServerName www.example1.de ...
0
votes
0answers
64 views

When trying to ProxyPass with SSL on Virtual Host (Apache2) I receive AH01630: client denied by server configuration: /var/www/

To give a little background; I am on EC2. I am running Apache2 version 2.4.7. I have also opened port 443 on my security group to allow SSL traffic. What I am trying to do in the long run is have a ...
0
votes
0answers
195 views

VirtualHost config in Cpanel - how to ONLY use my custom include file

I'm on Cpanel/WHM. Everytime the system updates or there's an EasyApache thing run, a new VirtualHost entry is created for me in the freshly revised httpd.conf file. Fortunately I have my ...
0
votes
0answers
132 views

Apache mod_proxy with HTTPS without key material (using SNI)

I would like to have an Apache 2.4 proxy which redirects port 80 and 443 requests to different machines in the local network, depending on the host name. I used mod_proxy and it works fine with port ...
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
28 views

Extracting ServerAlias to another file

I have a virtual host file with a ServerAlias: ServerName mydomain.net ServerAlias myalias.net ServerAlias *.mydomain.net For some reason, we'd like to have the ServerAlias in a different file. I ...