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

Subdomain resolves to another domain

I would like to have subdomain sarkastrunova.clevermarketing.cz If you add it to browser right now, it resolves to horsetransport.cz which is another Virtual Host on the same webserver. And I am clueless why. DNS records of A and AAAA of…
0
votes
2 answers

Let's Encrypt with dynamic subdomains

Setup is like this. I've got a domain e.g. example.com I've setup Apache2 with a VirtualDocumentRoot, this way I can point a subdomain to a specific folder in an easy way: File sites-available/websites.conf: ServerName example.com ServerAlias…
0
votes
1 answer

NodeJS ExpressJS Networking Domain on Apache WebServer

I come from the LAMP world so I am a bit confused on how to serve an ExpressJS application from my webserver. I have multiple Apache virtualhosts that all point to various directories and specify various domain names. They all have configuration…
Summer Developer
  • 160
  • 1
  • 13
0
votes
2 answers

Apache URL rewriting with ServerAlias

I have a vhost running on a CentOS 7 Server, which is serving 2 Prestashop stores. In this vhost conf file, I have a ServerName and a ServerAlias, each directing to a dedicated store. Recently I moved both stores to HTTPS, but one question…
IsKor
  • 45
  • 3
  • 10
0
votes
0 answers

Mapping URL of domain to different folder

So I have following folder structure: - web - SiteA - SiteB - SiteC I have the Domain www.sitea.de pointing to the folder SiteA. So far so good, everything works. Now I would like to point www.sitea.de/siteb/* to the folder SiteB. The same…
SaifDeen
  • 193
  • 1
  • 1
  • 5
0
votes
1 answer

nginx behind apache ssl configuration

I have an apache webserver who is hosting a website with ssl certificate in front of an nginx server which is also hosting a website (nodejs) but without ssl. I want to configure the domain hosted on nginx to also have ssl but I can't figure it out.…
Bram
  • 1
  • 2
0
votes
2 answers

Newb Question Involving Engine Yard

Okay, so maybe this sounds really dumb, but I'm not really a server guy. I write code. Anyways, trying to configure two Rails apps on a solo instance on Engine Yard. I have two domains bought through GoDaddy and I have the A records setup to the…
0
votes
1 answer

VirtualHosts and SSL, confused with correct setup for apache

I've red many tutorials , some didn't have any dates, some were probably outdated, some were not clear on a few details... Right now I am confused. Spent all day on this. I'm using ubuntu 16.04 / apache2 with some virtual hosts. I got a ssl…
mlclm
  • 169
  • 6
0
votes
2 answers

Bitnami LAMP stacks virtual hosts within virtualhost section

I am trying to set up a virtual host so that my wordpress app on the Bitnami LAMP stack can be hosted on my website, www.iconverge.us. For reference, I am using AWS lightsail as my host. But I am getting this error: bitnami@ip:~/apps/wordpress/conf$…
Noooo
  • 3
  • 3
0
votes
1 answer

My domain forwards to www.www.www.domain.com

In ubuntu server 16.04 I have a wordpress site and I want to link it with a domain name. I set up the DNS records in vutlr and then I set up also the Virtual hosts in my server However, when I type www.mydomain.com, I am forwarding to…
yaylitzis
  • 273
  • 3
  • 9
0
votes
2 answers

Is it mandatory to name folder same as domain name for virtual host?

I'm learning how to create virtual hosts on apache2. I have Ubuntu 16.04 operating system. I also have WSL (Ubuntu 16.04) in Windows 10. Now, here's what I observed when I made a virtual host on Ubuntu OS: I created following VH: #Did…
Vikas
  • 97
  • 1
  • 5
0
votes
0 answers

Apache Proxy mod_rewrite

Following this example, I am running a node application that I copied from here: I have set up Apache 2. for VirtualHost, and as show below, I am proxying an internet address to the local node application running locally.
Ivan
  • 299
  • 1
  • 4
  • 13
0
votes
2 answers

Apache: Don't deliver website by IP address

I have to admin a web server with Apache 2 to deliver some different websites - every site has its own domain. The server has a single IP address, say: 78.9.10.11. For every site a VirtualHost is defined like this: ServerName…
0
votes
2 answers

CentOS / Apache - Virtual Hosts Port Not Loading

What I've Tried I will begin by saying that i've looked across this site at a few questions and answers and have not found a solution. Most of the solutions i've come across, the fix has been to update the "hosts" file with the correct IP /…
0
votes
1 answer

all traffic going to Virtual Hosting

I have an application running at http://localhost:6512 and a virtual host definition as follows: ServerName ldpmarmotta.example.com ProxyPassMatch ^/(.*)$ http://localhost:6512/marmotta/$1 I am…
Noor
  • 109
  • 1
  • 1
  • 6