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

Poor man's virtual GPU, using a multiuser OS + GPU, instead of specialist vGPU card?

I've read about this system in a white paper somewhere, but can't remember where, or any details, and haven't found it since. The comment was in regard to GPU virtualisation with Type 1 (bare metal) hypervisors. It noted that some system or other…
0
votes
0 answers

Are name based virtual hosts for non-web servers?

Does the concept of name based virtual host only apply to web server? Or also to other servers which are not web servers? I ask this because in web servers, named based virtual hosts are implemented by HTTP Host header. I don't see virtual hosts…
Tim
  • 1,487
  • 6
  • 28
  • 43
0
votes
1 answer

Apache configuration issue (VirtualHosts and redirection)

I have included virtualhost .conf file into my httpd.conf with the following content: root@phpbb3:/usr/local/etc/apache24 # cat ./sites-enabled/000-www.domain.com.conf ServerName www.domain.com Redirect 301 /…
0
votes
1 answer

Apache SNI: Is it possible to mix non-secure hosts with secure hosts on the same interface?

On a shared server, we have some sites that only run on port 80. However, there are other sites that run on both port 80 and 443. For example: ServerName unsecure.com ServerName secure.com …
Nick
  • 103
  • 3
0
votes
0 answers

Changes in VirtualHost not taking effect

I've looked at quite a few posts on this site that have helped me with configuring a VirtualHost in apache to reverse proxy incoming host headers to the proper internal web server. Yet, when I change the settings in the file httpd-vhosts.conf, it…
JeffR
  • 113
  • 5
0
votes
2 answers

NGINX Uses first ssl server_block it can find as default

So I´ve removed my default vhost config from /etc/nginx/sites-available/, since I don´t need to catch users accessing a non-existent subdomain (Debian 9). Problem: When calling a random subdomain with https, f.e. https://abc.example.com, NGINX…
3x071c
  • 113
  • 8
0
votes
0 answers

VirtualHost entry for a ServerName that's a folder directory rather than a complete domain

Is it possible to create a VirtualHost entry for a ServerName that's a folder directory rather than a complete domain? I'm installing Craft 3 and want to run it from my current VirtualHost (rich.dev) but it requires a separate DocumentRoot (/web)…
0
votes
1 answer

"com/index.php" without slash in apache

Finally I have finished install SSL Certificate and finish to config the redirect from my old site to my new one, but right now when I try to entering from the old site, it send to me to new sit but withouth "/"…
0
votes
1 answer

exim4 - replace recipient domain name, virtual domains

I'm tying to setup exim4 as MTA for multidomain host. All users and domains are virtual, stored in the database like that: create table emails ( domain varchar(200), username varchar(200), password varchar(200) ) Mesages are stored in the…
BUKTOP
  • 155
  • 1
  • 8
0
votes
1 answer

How to point one domain to deep page of another domain with apache or htaccess

I have two domains (a.com and b.com) and a.com is running on my apache server. I want web browsers that try to visit b.com to end up at a.com/?b (transparently, no redirect, and no second virtual host if possible). I see that within the virtual…
TSG
  • 1,674
  • 7
  • 32
  • 51
0
votes
4 answers

The default apache site does not show up when i include httpd-vhosts.conf! Whats the problem?

I am trying to add two virtual hosts to apache. In httpd.conf i uncomment these lines: LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_module modules/mod_proxy_connect.so Include conf/extra/httpd-vhosts.conf And i add these to…
mrt181
  • 171
  • 1
  • 10
0
votes
2 answers

Apache (2.4) only serves 1st virtual host found on elastic beanstalk server

I have an Elastic Beanstalk server which I am using for my employer's main site, example.com and they want me to host one of their ancillary sites on it: go.example.com. So I just created a new ebextension config to create a second vhost. The…
0
votes
1 answer

Can't access phpMyAdmin - I am getting redirected to a vhost

My phpMyAdmin is located at /srv/www/htdocs/phpMyAdmin/. The IP of the webserver is 192.168.40.40 If I try to access phpMyAdmin like this: http://192.168.40.40/phpMyAdmin then I get redirected to a vhost which I created for a project…
Black
  • 461
  • 1
  • 8
  • 20
0
votes
1 answer

Routing requests from internal network to local Apache – a dnsmasq Job?

Hey folks from serverfault, new to this network site. I have a question regarding the configuration of a new server. Ubuntu 16.04 and Apache 2.4 will be running on the server. We would like to allow external access to the server, which could be done…
Mary
  • 103
  • 3
0
votes
2 answers

Apache - Adding Wildcard and a subdomain virtual host

I am trying to setup two virtual hosts on my server such that all subdomains should go to Dir1 and one specific subdomain should go to Dir2. Basically, I want to use these two *.domain.com > Dir1 special.domain.com > Dir2 I have following two…