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 virtual host configuration on debian

Im new to apache configuration and would be really glad if someone helped me with the following.Im running apache on a virtual private server, running the debian operating system. In /etc/apache2/sites-available, i have two virtual hosts…
qubit
0
votes
1 answer

How to Set up IP Specific Virtual host?

The following is my current sites-available.conf: ServerAdmin heuyie@localhost DocumentRoot /var/www/html/wordpress ServerName heuyie.com ServerAlias www.heuyie.com
Heuyie
  • 1
  • 2
0
votes
0 answers

Mapping alias in virtual host for a website - URL routes do not work

I have two Laravel sites: a front page and an API site. My customer will later separate the API site on a subdomain, but for the time being the customer wants to serve the API from inside "subfolder" of the landing page (mostly because he does not…
JustAMartin
  • 231
  • 1
  • 18
0
votes
1 answer

Sessions getting lost behind Apache virtual hosts

I have a Tomcat server at port 8080 behind an Apache server at port 80. I have virtual host setup with mod_rewrite which redirects to Tomcat using the below lines in 000-default.conf: ProxyPreserveHost Off ProxyRequests Off …
0
votes
2 answers

A particular sub-domain in a virtual host is not redirecting, but others succed

I like my website to be accessible by example.org or https://example.org not www.example.org. So I want http://www.example.org to redirect to http://example.org and http://www.example.org to https://example.org. But an interesting thing…
Finch
  • 125
  • 7
0
votes
1 answer

Apache doesnt accept ssl on parts of the domain

I have a problem with my Apache 2.4.18 server while using ssl encryption. My server setup is: the apache server redirects everything on port 80 (http) to port 443 (ssl), this I realized with different site configuration. And now my problem is: if I…
MelcomX
  • 1
  • 1
0
votes
0 answers

Switch virtual host to a new server

I'm trying to migrate virtual hosts entries to a new server but pages are still being served from the old server. What I've done on the new server: I have created entries for the domain name in sites-available and created symlinks in sites-enabled.…
hello
  • 101
  • 2
0
votes
1 answer

Is it possible to filter an absolute path from Apache ErrorLog?

Using Apache is it possible to edit the Virtual Host to exclude a certain absolute path (such as /var/www/html/blog/wp-content/plugins/my_plugin/) from log to the ErrorLog file? I need to stop it from log warnings like this: PHP Warning: Illegal…
NineCattoRules
  • 179
  • 1
  • 3
  • 15
0
votes
0 answers

Secure permissions for website directories

We have some websites on a centos nginx webserver. Usually we put nginx:nginx as owner with 775 permissions and developers are part of the nginx group. If you are wondering why developers need to write there, we are a little entity different people…
Federico Galli
  • 918
  • 6
  • 16
0
votes
1 answer

VirtualHost configuration does not work for internal calls in CentOS container

My development environment is in a docker container, based on CentOS. I have 2 virtual hosts configured. A default vhost which looks basically like this: ServerName my.local.domain.com ServerAlias *.domain.com And a specific…
Daniel
  • 101
  • 1
0
votes
1 answer

Apache ProxyPass Docker Containers Returning 503

I am stuck getting started with containerized virtualhosts. The set up is as follows: mydomain.com Ubuntu VPS (digitalOcean, for context), Docker pre installed Apache container (reverse proxy), guest port 80 to host 80 Web-app container (running…
Konchshell
  • 3
  • 1
  • 2
0
votes
0 answers

Virtual Host domain doesn't get me to right folder

I am trying to set up multiple websites on a single Ubuntu 16.04 installation, and so far have installed Ubuntu with LAMP and SSL (Letsencrypt). Ubuntu 16.04 PHP 7.0 Apache2 MariaDB Issue: first domain ( website1.com ) points to the right folder (…
Scott Agirs
  • 111
  • 2
0
votes
1 answer

Catchall redirect to error page

This is a continuation of my other post: Catch all VirtualHost not working. I have got the catchall VirtualHost working. But know how do I get it to redirect a custom error page such as 404. In my VirtualHost I add Redirect 404 /, it takes me to…
0
votes
1 answer

Overlapping Virtualhost on port 80

On my clients web server, he has this apache conf file: rails_passenger_conf Listen *:80 # rails public folder DocumentRoot /www/myclientdomain.com/public ServerName myclientdomain.com RailsEnv…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125
0
votes
1 answer

Catch all VirtualHost not working

I'm trying to setup a VirtualHost that catches all sub domains that don't many any other VirtualHosts. But with this, I keep getting the index.html and it doesn't take me to the error.php page. My OS is Ubuntu 16.04 and I haven't changed the…
1 2 3
99
100