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
0 answers

Nextcloud conf not loading correct page

I have got nextcloud working in a VirtualHost (See configuation below). When I only have on virtualhost (nextcloud.conf) enabled in Apache on Ubuntu 16.04, it works. But when I enable the 000-default.conf and the default-ssl.conf it keeps taking me…
0
votes
3 answers

cannot add named based virtual host

my default virtual host which loads mainsite.com NameVirtualHost * DocumentRoot /var/www/ Options FollowSymLinks AllowOverride None …
ggpwjg
0
votes
0 answers

Apache takes me to same site with different domains

When I try to navigate to my site any domain I enter under https it takes me to the site specified in the VirtualHost config provided. I have setup the ServerName but it still doesn't work. So if I enter https://storage.example.com/ it takes me to…
0
votes
0 answers

Apache Expires not working?

I am trying to configure Apache browser caching, but it doesn't seem to be working half the time. This is my vhost config: ServerName example.com ServerAdmin webmaster@localhost …
Dagrada
  • 153
  • 1
  • 1
  • 6
0
votes
1 answer

PHP FastCGI - How PHPRC works

I have a weird situation here in my configuration of Apache. I have decided to use FastCGI and multiple versions of PHP. Below are my configuration files. If I check phpinfo(); I can see that on domain localhost it is loading php.ini from folder…
Arxeiss
  • 101
  • 3
0
votes
3 answers

Apache: How can I make my website available only on SSL and not via both HTTP and HTTPS?

I have a tomcat web app in an Ubuntu server. The web app is deployed as ROOT. I have installed apache2 and via a VirtualHost I pointed the IP directly to the tomcat web app. So I can access the site via the IP (and domain) directly like 125.20.20.50…
PeakGen
  • 129
  • 1
  • 8
0
votes
1 answer

apache2 multiple virtual hosts with different ssl not working

I generated certs using the following command openssl req -new -newkey rsa:2048 -nodes -keyout rrr.key -out rrr.csr I then created the following file ssl-001.conf in the sites-available folder DocumentRoot…
sqwale
  • 141
  • 1
  • 8
0
votes
0 answers

Issue with Nginx and DNS

I have a Wordpress running on Nginx, I did all the installation it by following this tutorial from Digital Ocean. I used "example.com" domain (literally) to install everything and then, in order to have access to the site, I modified my hosts file…
NeoSennin
  • 51
  • 6
0
votes
1 answer

Redirect api calls from subdomain to main domain using Location proxyPass

I want to redirect my api calls from sub domain to main domain. My api server is in example.com. Request url is http://foo.example.com/api?service=work&action=all_work, but my file system calls should come through. ServerName…
0
votes
1 answer

disable one URL in apache when two URLs point to same IP

I have two https://www.noip.com/ domains, domain1.noip.com and domain2.noip.com, that point to the same IP. I have an apache config file to serve up domain1.noip.com and it works. The problem is if I go to domain2.noip.com it also serves up the…
IMTheNachoMan
  • 255
  • 4
  • 16
0
votes
1 answer

Why am I unable to add an Alias to my Vhost via the Puppet Apache Module?

Here is the snippet from my manifest: apache::vhost { 'default-http': port => 80, serveraliases => ['example.test.com', 'example2.test.com',], docroot => '/var/www/html', rewrites => [ { comment => 'Bounce…
david
  • 135
  • 7
0
votes
0 answers

Update Host VMM Microsoft Server 2012 R2 Error : The RPC server is unavailable,

I have 12 host in SCVMM. In the Host status communicate is " Needs Attention" and i go to right click mouse on a host and go to Update agent check credentials profile and system give me this error : /// Error (410) Agent installation failed on…
0
votes
0 answers

Website shows index.html as default apache page and other pages are error 500

I am having issues with apache config, usually its done in minutes but this has me puzzled why it wont work. I made LetsEncrypt self signed certificates for test use, using presented…
0
votes
3 answers

Create Subdomain(s) on Virtual Host on Ubuntu

i m using ubuntu & wants to Create Subdomain on Virtual Host for local host. i have already created server name on my local host but now wants to Create Subdomains on Virtual Host for local host. like my server name is sajid.msj then i wants my…
muhammad Sajid
0
votes
1 answer

redirect entire virtualhost to 404 page

I have a few sites hosted on an apache server. Most of them can be accessed via http and https. One of them may only be accessed over http. Attempts to acccess it via https must be redirected to the 404.php page (except for attempts to access the…
1 2 3
99
100