Questions tagged [virtualhost]

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.

HTTP Virtual Hosting

In HTTP, virtual hosting refers to the serving of content for multiple domains from a single server. The most common form of virtual hosting is properly called "name-based virtual hosting", where the content to be shown is based on the domain name being requested. Less frequently, virtual hosting can be done by using the destination IP address to select which content to show (this is most commonly used when hosting HTTPS websites).

Guides for configuring virtual hosting in a number of common web servers include:

Mail Virtual Hosting

Mail service can also benefit from a form of virtual hosting. In this instance, the receiving SMTP server performs local delivery based on the entireity of the e-mail address (rather than just the local-part), and users login to their POP3/IMAP server using a username that includes their domain (this is usuallythe user's e-mail address) rather than a bare username, and the server looks up the login details and configuration information for the user based on that fully-qualified name. This allows multiple users with the same local-part to use the same server.

Most "integrated" mail services support this feature "by default"; that is, users always use their full e-mail address to login. However, most standalone mail servers do not support this by default and require additional configuration.

Further Reading

2749 questions
0
votes
1 answer

Unable to hit subdomain on VM: Ubuntu Server

I was sent here from stack overflow - sorry if this is the wrong forum. I'm trying to set up a local dev environment which simulates multiple servers. I'm just trying to learn more about this and this is the first time I'm doing this. In short, I…
Daniel
  • 3
  • 3
0
votes
1 answer

DNS txt record to point subdomain to other domain

I have a SimpleHosting instance at gandi.net, connected with a domain at Gandi, mygandidomain.org, and another domain, myrootdomain.name registered somewhere else. I successfully added a CNAME entry in my myrootdomain.name's DNS records to let one…
anonymous ape
  • 111
  • 1
  • 5
0
votes
2 answers

Setup virtual host for intranet in apache2 - suse linux

We have a websites (foldername /srv/www/vhosts/wp-intranet hosted on a server in our LAN. We need a Vhost for it so that the website is reachable at "http://192.168.20.25/intranet" and/or "http://intranet.mycompany.de" I followed the instructions in…
Black
  • 461
  • 1
  • 8
  • 20
0
votes
0 answers

Nginx virtual hosts redirection not working

I am having trouble configuring Nginx to redirect to two different web applications on CentOS 7. I have 2 web applications running on Node.js. First app A running on port 1000 has domain www.domainA.example, application B running on port 2000 has…
0
votes
1 answer

SaaS Domain Mapping: Cname to subdomain

I read a lot of threads here and I think I'm doing everything perfectly. I setup a cname record on domain.com with the name www and the answer the.subdomain.com However when I go to www.domain.com it shows the content on www.subdomain.com instead of…
Esteban89
  • 101
  • 1
0
votes
1 answer

Apache Virtual Hosts points to wrong DocumentRoot

I’m running a VPS (Debian 9) with Apache2 service running on it. I want to have a mail.example.com direct traffic to /var/www/mail and example.com to direct traffic to /var/www/example. I have written and rewritten the virtual hosts conf many times…
0
votes
1 answer

Set Mail From Name via Virtual Host for sendmail

I have an issue with a Magento 2 store not setting the from path and from name for some reason. After a few hours of debugging I have decided to work around it temporarily while i figure out the main issue. I have however multiple site instance and…
harri
  • 185
  • 2
  • 11
0
votes
0 answers

apache2 segmentation fault on https requests

I am trying to configure an old OpenSuse server with https. The http virtualhost seems to work fine, however when I try to load the https url from my browser I get a: This site can’t be reached xxxxxxxx.it unexpectedly closed the…
Niko Zarzani
  • 111
  • 1
  • 4
0
votes
1 answer

CNAME pointing but not getting final content

I am by no means a pro in terms of networking and DNS stuff, but I know my share of stuff. I am attempting to do the following. A customer's hosting doesn't have enough space and permissions to host a small site I am working on. So I am hosting the…
0
votes
1 answer

httpd redirect to main apache test page

I have a task to configure site-config like: 1) * must be redirected to backend 2) /test must show main apache page I've tried some cases: BalancerMember http://localhost:8080/sample …
0
votes
1 answer

Apache2 (Ubuntu 16.04) subdomain shows main website instead of subdomain website

default.conf DocumentRoot /var/www/example ServerName example.com DirectoryIndex index.php index.html DocumentRoot /var/www/subdomain ServerName subdomain.example.com …
0
votes
2 answers

Debian Apache2 and SSL

I recently took over a server that is using Apache2 with SSL. I have setup a new server to which I am migrating all of the old websites so that we can more easily scale (it's a cloud server) and so that I can set everything up correctly (or at least…
0
votes
1 answer

Apache config rewrite: "Unable to execute .. No such file or directory"

I've been moving some rewrites from .htaccess to our vhost_ssl.conf file. Most are working fine, except ones that utilize our ecommerce platform. We use Miva Merchant as our ecommerce platform, which uses its own handler for .mvc files. When I do a…
Mike Willis
  • 203
  • 2
  • 14
0
votes
0 answers

Can't handle PHP sessions in more than 1 apache virtual host

I have 2 cloned instances in AWS with Ubuntu 16, Apache 2.4 and PHP 5.6. I configured each with 2 virtual hosts (plus the default) with the same configuration (different names obviously): Define VHostName dolibarr.blabla.com Define VHostUser…
Xilver266
  • 1
  • 1
0
votes
1 answer

My virtual hosts file for my subdomain is not being picked up

So I have a website running on a lamp stack on Ubuntu. I have two vhosts files... 000-default.conf: ServerName www.example.co.uk ServerAdmin admin@example.co.uk DocumentRoot /var/www/html/ ErrorLog…
James
  • 1
  • 1