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

Apache virtualhost doesn't apply

I am setting up a virtualhost that requires a password for a directory. I checked and the following entry works locally, but not on the server (Ubuntu). Do you have any tips what difference could be between the local and remote…
Tojas
  • 115
  • 6
0
votes
1 answer

Redirect a subdomain to a different login page

I have a domain with a subdomain set up like the following in my vhost.conf file. ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /opt/mysite/webapps/ROOT/ ProxyPassMatch /…
0
votes
1 answer

Multiple Apache vhost pointing to same directory

I have different domains, and related multiple Apache vhosts, pointing to the same directory. So, basically, the different domains (mydomain.com , mydomain.de , mydomain.fr ) share the same site and the same files. Everything works fine, and the…
0
votes
3 answers

Apache Virtual Host redirect from https subdomain to subdirectory

How do I redirect requests coming to https://blog.example.com to https://example.com/blog? Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g. Redirect https://blog.example.com https://example.com/blog But…
Byakugan
  • 141
  • 1
  • 3
  • 12
0
votes
2 answers

Is there any performance benefit to Bond Virtual Adapters?

I am using XenServer and wondering if there are any performance benefits to bonding two "virtual" network adapters on a virtual machine? I am certain it would benefit a bare metal server (make one inbound, and one outbound). The actual server only…
Kladskull
  • 1,255
  • 5
  • 15
  • 32
0
votes
0 answers

Subdomain always redirects to main domain

I have redirected my domain to my server, and successfully configure the main domain like this: /etc/apache2/sites-available/mywordpress.com.conf ServerName www.mywordpress.com ServerAlias mywordpress.com …
mileven
  • 101
  • 1
0
votes
1 answer

Wrong directory on virtualhost

I'm trying to have 3 different domains on my VPS, those are pd.lsgob.us intranet.lsgob.us lsgob.us I have configured them but for some reason I'm getting redirected to the same index.html that the one in…
0
votes
1 answer

In Apache/local, how can I support both directory access and named-host access?

I understand how to use Directory and (I think) VirtualHost directives. I further understand that I can't mix them (although I can nest them). When I mix them I get 404 not found for the Directory-type URLs that used to work. How, then, can I…
0
votes
4 answers

Should I used virtual named hosts for intranet?

I look after the intranet in our office, running Mac OS X Server 10.5.8. We have several applications running on the intranet - Bugzilla, TWiki, a few home grown apps and some static pages. (Don't use the OS X collaboration tools - we were using…
Steve Folly
  • 575
  • 3
  • 12
0
votes
2 answers

Apache 2.4.6 Virtual Host ServerAlias directive not matching alias in all cases

Apache 2.4.6 is hosting four domains using name based Virtual Hosts. Calls to port 80 for http are redirected to port 443. Each virtual server has two ServerAlias args for the directive to redirect calls to http://domain-example.com/ or…
Ted Spradley
  • 111
  • 4
0
votes
1 answer

502 Bad Gateway on localhost Apache

I'm trying to run a Drupal 7 multi-site install on my Mac (10.12.6). My directory setup: ~/Sites/index.html ~/Sites/drupal/docroot/sites/site1 ~/Sites/drupal/docroot/sites/site2 My /etc/hosts: 127.0.0.1 site1.local 127.0.0.1 site2.local If I…
OrdinaryHuman
  • 139
  • 2
  • 9
0
votes
2 answers

How to setup an API, a webapp, a gitlab, and a showcase website on the same server?

I am coming today because, as a developer, I feel like I must know how to configure such things, however, I am getting stuck and I am not sure to understand why. I have 4 stuff let's say: An API (www.api.example.com) A WebApp…
Emixam23
  • 133
  • 1
  • 6
0
votes
1 answer

redirect www.subdomain.domain.com to subdomain.domain.com

We currently have a domain that have a wildcard ssl so our site is something like this, www.ourdomain.com ourdomain.com subdomainA.ourdomain.com subdomainB.ourdomain.com and so on. What i want to ask is how to forward…
david
  • 3
  • 4
0
votes
0 answers

Apache test page, instead of Django app showing up after server is started

I have an app on EC2 that I start up by ssh'ing into the VM, activating the env and then running manage.py runserver. The Django app starts without any errors on 127.0.0.1:8000. The server files within /etc/httpd were migrated from an Apache 2.2…
wellwellwell
  • 63
  • 1
  • 8
0
votes
0 answers

Connect to vpn with VM as middleman

I am assuming it is possible to connect to a virtual machine as a VPN service from my host machine, but I would assume like any other vpn service I would need to go through my router with some rule to forward any incoming traffic to the vpn service?…
j-money
  • 101
  • 2