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

serving wrong serverName

A conf file of httpd-vhosts.conf: DocumentRoot "C:\Apache24\htdocs\lsapp\public" ServerName lsapp.test DocumentRoot "C:\Apache24\htdocs" ServerName…
0
votes
1 answer

Apache - How to map a domain to specific path of another domain on the same host?

I have a Wordpress website having a domain for example: example.com and there're a few pages like example.com/shop , example.com/products/sample-product which I want to be viewed via myshopexampledotcom , myshopexampledotcom/products/sample-product…
Faizan Ali
  • 101
  • 3
0
votes
1 answer

2 ProxyPass SSL wildcard on HTTPD2

So basically I am trying to setup 3 different SSL virtualhosts. I have the following setup beta.website.com api-beta.website.com app-beta.website.com beta is our old platform, api and app our part of our new platform and they live on port 8000 (node…
CMOS
  • 101
  • 4
0
votes
3 answers

Server redirecting to root vhost file

Okay, I have multiple domains on my server. They have vhost conf files. my main domain.. www.example.com has config file such as.. ServerAdmin example@example.net ServerName example.net ServerAlias www.example.net DocumentRoot…
0
votes
3 answers

Create subdomain upon user registration

I have a website where I want users that sign up to get their own subdomain. This subdomain is virtual, and every subdomain uses the same web server files. I use PHP and Apache, and I know about Virtual Hosts, but I'm wondering where I need to put…
rebellion
  • 101
  • 2
0
votes
2 answers

Default website on all Apache virtual hosts

I have installed Webmin, Virtualmin, LAMP on my Debian Stretch server. It's a clean install. Now my problem is a bit weird, as I have already had it with my previous server a long time ago, and it took me half a year to finally solve it - when first…
user464065
0
votes
2 answers

VirtualHost with Multiple Domains Not Serving Correct DocumentRoot

Running CentOS 6, Apache. I have the following in my httpd.conf: DocumentRoot /var/www/html ServerName domain1.example ServerAlias www.domain1.example DocumentRoot…
0
votes
1 answer

How to set up a http website and another https website on single-ip server in Apache?

I want to set up a http website:http://example1.com, and a https website:https://example2.com using the following configuration: Listen 80 Listen 443 NameVirtualHost *:80 NameVirtualHost *:443 ServerName example1.com …
peter
  • 93
  • 13
0
votes
1 answer

Can I access virtual hosts from one computer directly by their IP address from another without configuring the hosts file?

I set up a couple virtual hosts in order to point to different resources on the network that I want accessible from links on my index page. I set these to ports 81 and 82. On my index page, I link directly to the IP, like so:
Pawtang
  • 3
  • 3
0
votes
1 answer

Configure location on VirtualHost

I'm new at apache and have a few questions. First of all i'm working on a regional government and I have to set up in my computer a working environment, so I followed a manual they have to do that. But they also have some configuration files…
0
votes
0 answers

What is wrong with my vhost file when trying to implement SSL on an Apache site?

I have installed an SSL certificate on my linode server and changed the vhost file for my site as follows: SSLEngine on SSLCertificateKeyFile /etc/ssl/private/mysite.co.za.key SSLCertificateFile…
Martin Duys
  • 115
  • 6
0
votes
1 answer

Virtual host subdomain for apache2 server doesn't work

i have problems with my subdomain on apache2. I have domain "propaniusz.tk" pointing at my server and it works. But im trying to make subdomain with virtualhost "wybudzenie.propaniusz.tk" doesn't work at all. Here's my config…
0
votes
1 answer

Apache 2.4 VirtualDocumentRoot and www alias at once

Here's my vhost file: UseCanonicalName Off VirtualDocumentRoot /Users/username/Sites/%-2+ ServerName test ServerAlias *.test I use it for my local development. Under directory ~/Sites i have all the…
Alexander Kim
  • 597
  • 3
  • 8
  • 21
0
votes
0 answers

Apache URL based proxy redirection

I've recently installed PLEX Media Server on my server but i have some dificulties to hide it behind an Apache proxy... I've found this vhost configuration to allow a subdomain based access to PLEX (eg: plex.example.com). My problem is that I don't…
Dynamite
  • 151
  • 6
0
votes
1 answer

Couldn't find IP address for subdomain after Apache's reverse proxy

I would like to use the Jenkins docker container, that allows an access from localhost:8080, from a subdomain, such as jenkins.subdomain.me I came accross this post, applied it to my situation, activated the proxy_http mod for Apache, then restarted…
Jaeger
  • 125
  • 11