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)

69
votes
5answers
41k views

Multiple SSL domains on the same IP address and same port?

This is a Canonical Question about Hosting multiple SSL websites on the same IP. I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the ...
2
votes
1answer
59 views

Hosting multiple distinct folders for distinct domains

I have a VPS that I've installed a Apache Web Server on. What I want to do is forward my own website domains to that server and host those websites' files inside my Apache Web Server. As far as I ...
24
votes
7answers
32k views

Apache Default/Catch-All Virtual Host?

If I have 3 domains, domain1.com, domain2.com, and domain3.com, is it possible to set up a default virtual host to domains not listed? For example, if I would have: <VirtualHost 192.168.1.2 ...
10
votes
2answers
6k views

SSL site not using the correct IP in Apache and Ubuntu

I'm trying to set up an apache-ubuntu-php webserver. My webserver will host multiple SSL sites, each SSL site will have it's own IP address (unless there's a better way to do this). So I suppose the ...
0
votes
1answer
99 views

Two domains (when SSL) on same directory

My apache2 configuration is problematic: I've two website on a server: domain1.tdl domain2.tdl One of them (domain2.tdl) must be and is accessible on port 443 (with SSL). All domains must be and ...
5
votes
1answer
363 views

How to stop HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (Apache-SNI)

I hope that title is clear. How do I prevent HTTPS requests for non-ssl-enabled virtual hosts from going to the first ssl-enabled virtualhost (setup is Apache-SNI). For example, using my abbreviated ...
3
votes
5answers
2k views

Enable access without “www.” on Ubuntu

I want to enable the access to my site without the "www." prefix. I tried to insert this in my /etc/apache2/sites-available file: <VirtualHost *:80> serverName mydomain.gov.br ...
5
votes
4answers
4k views

Apache virtual host based on *source* IP

Is it possible to configure Apache for different virtual hosts based on the source IP? (i.e. same interface, same hostname, but two different virtual hosts, with different content, based on source ...
7
votes
1answer
8k views

Apache SSL VirtualHosts on a single IP using UCC/SAN certificate

I need to host several Apache virtual hosts with SSL from a single IP. Now - I understand that because SSL wraps around the HTTP request, there's no way to know which host is being requested until a ...
13
votes
5answers
34k views

How to find all hostnames in DNS attached to one IP?

If I have multiple hosts configured on one machine (a la apache's VirtualHosts), how can I do a lookup on the IP and find all domains configured to reach it? For example, I have several web and email ...
4
votes
1answer
3k views

How can I monitor bandwidth usage by Virtual Host in Apache on Ubuntu

My Environment: Apache 2.2.9, Ubuntu 8.10 I am trying to find a way to monitor the bandwidth usage on my server broken out by each virtualhost WITHOUT installing something like PLESK, CPanel, or ...
30
votes
4answers
80k views

Redirect URL within Apache VirtualHost?

I have a dedicated server with Apache, on which I've set up some VirtualHosts. I've set up one to handle the www domain as well as the non-www domain. My VH .conf file for the www: <VirtualHost ...
4
votes
1answer
5k views

port to subdomain

I have installed Hudson using apt-get, and the Hudson server is available on example.com:8080. For example.com I use standard port *:80 and some virtual hosts set up this way: # ...
6
votes
4answers
10k views

How to create a multi-domain self-signed certificate for Apache2?

I've got a little private webserver where I have several virtualhosts. I know that it's impossible to assign a certificate to each individual virtualhost, because the server finds out which ...
6
votes
4answers
4k views

Redirect all non-www subdomains to main www domain with Apache2

I have a website (domain.com) and I would like to redirect all my secondary domains (domain2.com, domain3.com) and all the subdomains of these domains (*.domain.com, *.domain2.com...) to the main ...
4
votes
2answers
7k views

Multiple Rails sites using Passenger and VirtualHosts?

What I am trying to do is run multiple Rails apps from a server machine at work. We dont have multiple hostnames for the box. We want to host some rails apps on it as well as our php apps. Currently ...
2
votes
3answers
10k views

Need help trouble shooting Https webserver error - SSL Handshake failed

I followed this guide: http://hints.macworld.com/article.php?story=20041129143420344 Here is my virtual host definition <VirtualHost *:443> SSLEngine on SSLProxyEngine On ...
3
votes
3answers
2k views

Wildcard DNS, VirtualHosts on apache2, 404 for unused subdomains

On an Apache2 server linked to by a DNS that includes a wildcard entry, e.g. *.example.com, subdomains that are not defined as ServerNames in any VirtualHosts point to the first defined VirtualHost, ...
4
votes
2answers
4k views

Apache2 VirtualHost auto subdomain

I just got myself a brand new Linux-server (Debian Stable). The server is primarily used for webhosting and webdevelopment. I installed Apache2, PHP5 and MySQL and it all works. The way I organize ...
3
votes
2answers
2k views

Apache: Client-IP-based DocumentRoot

I don't know if this could be possible on apache yet, I've done hefty amount of research before coming here. but: I have a VirtualHost running at *:80, ServerName to somedomain.tld. What I want to ...
1
vote
6answers
705 views

How can I figure out which site on my server is getting swamped with traffic?

I'm running a linux server with about 60 websites on it that is crashing under heavy load. Is there an easy way to see which Apache virtual host is getting the most traffic?
2
votes
2answers
6k views

How to properly use VirtualHost and mod_proxy together for different incoming domain names and internal ports?

I am trying to setup httpd.conf properly but regardless of the sub-domain/domain combo below, they all resolve to the same internal URL. <Proxy *> Order Allow,Deny Allow from all ...
2
votes
1answer
3k views

mod_wsgi daemon mode - WSGIDaemonProcess per virtual host configuration?

I had a fairly simple question. When mod_wsgi is run in Daemon mode, and you enable the WSGIDaemonProcess and WSGIProcessGroup directives on a per virtual host basis, are these picked up by other ...
0
votes
1answer
689 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
2answers
13k views

Apache Virtual Host with Alias

I have a virtual host running on my local copy of Apache. It has an alias. <VirtualHost 127.0.0.1> ServerName oliverash.me.dev DocumentRoot "/usr/docs/oliverash.me/public" ...
2
votes
3answers
2k views

How can I get Apache to not respond to an IP-only request?

I have several web sites, all set up in http-vhosts.conf with their respective ServerName and DocumentRoot, they are working fine and dandy. But when I visit the server's IP address URL, I get back ...
1
vote
2answers
3k views

Apache, virtual hosts, and default sender for sendmail

So here's my issue...I have two sites hosted on one machine using apache's virtual hosts. I want to send emails from the two different sites (domain.com and domain2.com) using the appropriate email ...
0
votes
2answers
70 views

Issue with multiple virtual hosts on dedicated server. 2nd VH won't respond, 1st one does

I've got two virtual hosts setup and enabled using a2ensite. It's Ubuntu Server 14.04.1 LTS, Apache2, etc. So there's two config files in /etc/apache2/sites-available and their respective symlinks ...
0
votes
3answers
60 views

One VirtualHost for certain URLs, another VirtualHost for all other URLs in Apache

Is it possible to configure Apache to have different virtual hosts listening on the same IP address, same port, such that certain paths (not the full domain, just the local path) will direct to one ...
0
votes
1answer
365 views

Postfix null client configuration for Multiple Domains

I'm setting up Postfix null clients on in a virtual hosting server for multiple domains. I found some documentation about setting up Virtual Domain Hosting, the closest thing I could find to what I'm ...
0
votes
1answer
990 views

Setting up httpd-vhosts.conf for multiple virtual hosts

I have a simple test setup using xampp at home, and I am getting really weird behavior when I attempt to set up multiple virtual hosts on this box. Here is my vhosts file: NameVirtualHost *:80 ...
-2
votes
1answer
267 views

How can I host multiple websites from one port with IIS? [closed]

i install DNS Server on windows server 2008 r2 and install IIS on it. i want to know how can i configure my dns records to show sites to my users .it is an external dns server and i want to install ...
-2
votes
1answer
162 views

Apache Virtual Hosts in XAMPP

I'm setting up some virtual hosts for local web dev. I'm using XAMPP and have been having a nightmare getting it working. Here's my httpd-vhosts.conf file: NameVirtualHost *:80 <VirtualHost *> ...
17
votes
8answers
11k views

How can I see how much bandwidth each Apache Virtual Host is using?

I have Apache set up to serve several Virtual Hosts, and I would like to see how much bandwidth each site uses. I can see how much the entire server uses, but I would like more detailed reports. ...
4
votes
2answers
3k views

Tracking Apache by VirtualHost

I have an apache webserver running many VirtualHosts. Recently it has been bogging down and becoming unresponsive, and I'm wondering how I can determine which VirtualHosts are causing most of the ...
3
votes
3answers
1k views

Configure Bonjour for a custom vhost on Apache on OS X

Bonjour is a lovely technology. I would like all my custom vhosts on my mac (Snow Leopard) to broadcast via bonjour. What is the best way to do this, without having to enable for every vhost ...
21
votes
4answers
38k views

How can I solve the apache2 httpd error “mixing * ports and non-* ports with a NameVirtualHost address is not supported”

Here is the error I get when booting up Apache2: * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [Wed ...
5
votes
2answers
1k views

Apache Virtual Hosts with SSL

I have a web server with full root access, which hosts 3 domains. They are on the same IP and managed via VirtualHost files running apache2. I would like to add SSL capability to one of them, i.e. be ...
3
votes
1answer
4k views

Apache: Using same Directory directive for multiple virtual hosts

Here's a sample VirtualHost entry <VirtualHost *:80> ServerName domain.com ErrorLog logs/domain.com-error_log CustomLog logs/domain.com-access_log common DocumentRoot "/var/www/srs/web" ...
2
votes
2answers
5k views

SSL and ServerAlias on one Apache server with multiple domains

I have a virtual sever which I would like to point two domains to, both pointing to different sites. For example, example1.com goes to /var/www/example1. example2.com goes to /var/www/example2. I ...
10
votes
2answers
7k views

Separate php.ini file for each Apache virtual host?

Is it possible to have a separate php.ini file that overrides the default php.ini file for each virtual host? I'm running Apache/2.2.14, PHP 5.3.2-1. For example, I have several vhosts pointing to ...
0
votes
4answers
998 views

VirtualHosts with wildcard Domain Names subdomain.*

I am trying to setup Virtual Hosts on Apache that react to the certain subdomains but any domain name Such as subxdomain.* so any domain that points to the machine along with the subxdomain would ...
6
votes
1answer
10k views

Declaring multiple ports for the same VirtualHosts

Declare multiple ports for the same VirtualHosts: SSLStrictSNIVHostCheck off # Apache setup which will listen for and accept SSL connections on port 443. Listen 443 # Listen for virtual host requests ...
5
votes
4answers
4k views

limit bandwidth and space usage of each Virtual Host?

I am starting a small web hosting company to teach me about system administration and one of the problems I am having is how would I limit the bandwidth and disk space of each virtual host ...
4
votes
1answer
7k views

ServerName wildcards in Apache name-based virtual hosts?

On our LAN I've set up several 'fake' TLDs in the DNS server, with the intention of using them for Apache name-based virtual hosting. I'd like to combine this with mass-virtual-hosting (i.e. ...
4
votes
1answer
473 views

Dynamic subdomains, mod_python and trac

I'm going to be running multiple subdomains, eventually too many to be able to each have their own config files. I have the vhosts working how I want them so each subdomain has their own folder eg ...
3
votes
1answer
4k views

Virtual hosts & symbolic links, why can't I set DocumentRoot to a symbolic link?

I have recently setup Capistrano on my server and it works great. I changed my virtual hosts to point to the symbolic link created by Capistrano. My virtual hosts file: <VirtualHost *:80> ...
3
votes
1answer
501 views

Apache mass virtual hosting & suexec & fcgid

I followed Falco's tutorial and everything now works as expected for 2 users (e.g. john and alice) with their relevant directories (/var/www/john and /var/ww/alice). Now, I want to go to the next ...
3
votes
1answer
177 views

Will turning off htaccess have a noticable performance increase?

Will turning off override by htaccess in apache have a performance increase? I have had a look online and there is very little articles/reports on this. If this is the case how do I go about turning ...
2
votes
1answer
1k views

How to avoid Error 403 Forbidden : Apache virtual host configuration issue

I am quite a newbie to the Apache Server (2.0, I know it is a bit too old, however my workplace demands me to learn it as it is the version we are using)and now trying to get Apache work with Jboss ...