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

2751 questions
6
votes
2 answers

Plesk 10 - creating and using vhost.conf

I'm having some issues setting up and using a vhost.conf for one of my domains. So far none of the domains have required any extra configuration but now I need to use a PEAR module, so I'm looking to include /usr/share/pear in the PHP settings for…
MrFidge
  • 321
2
votes
5 answers

Forwarding subdomains

How can I forward www.sub.domain.com to //sub.domain.com This is all in 1 virtual host Include /etc/apache2/vhosts.d/ssl.conf.include DocumentRoot /scripts/htdocs/domain-live ServerName sub.domain.com ErrorLog…
Ben
  • 3,880
  • 19
  • 66
  • 99
1
vote
1 answer

Apache Virtualhost shows default page only

I've been struggling with Apache Virtualhost for a day now. I would like to run 2 sites with one ip. When I enter the address in the url bar(domain1 or domain2), it always shows the default page only(which is domain1). Any help will/would be…
jani777
  • 13
1
vote
0 answers

How redirect in WAMP url ww.xyz.com to ww.abc.com/some-page?

I am working in site www.example1.com which is hosted in WAMP server, there is another site which is www.example2.com,when a user type www.example2.com in his browser,it should be redirected to www.example1.com/some-page. VH .conf file for the…
1
vote
2 answers

How does sharing a single IP address in a web hosting environment affect performance?

In shared web hosting sometimes hundreds of virtual hosts operate on the same web server at a single ip address. In what specific ways does the sharing of an ip address, rather than the sharing of other resources, affect performance?
1
vote
2 answers

How to rewrite url to remove port number?

I've subsonic application running of tomcat. Everything else works on apache. I don't want to write port number everytime so I'd like to set-up a simple directory where subsonic will be accessible. So, I'm trying to make virtualhost file inside…
user113400
1
vote
3 answers

How to access a virtual host from lan?

I've setup a virtualhost in my pc using "wamp server". The virtual host is accessible via http://myproject-name.lan/ Now, how shall we reach it via the other lan client pc? And also, how can we reach the other virtual hosts? I don't know enough…
GaryP
  • 129
1
vote
1 answer

Mass VirtualHost in vhost.conf help

I'm trying to set up a service where clients can sign up and a subdomain will be automatically made for them as part of their account. After looking high and low on google i came onto an apache page detialing Mass Virtualhost and similar…
Eli
  • 427
  • 2
  • 7
  • 19
1
vote
1 answer

How to do mass virtual hosting with Java webapp?

We've got a Java webapp. It's a simple .war file. We allow customers to sign up for our service and they get their own URL: http://customer_name.ourdomain.com which points at a special instance of our app just for them. We've got the system up and…
Shef
  • 253
1
vote
1 answer

two different virtual hosts, one page displayed

I have two different sites configured using virtual hosts (the content of the virtualhost files is posted below) i just copied the default file and edited a few lines... When i direct my browser to either of the two sites, only the content of the…
majdal
  • 113
  • 3
1
vote
1 answer

How to point two different domains to the same web application (Apache)

I have an app: l'et's call it Mickey. To access the app, I've configured the vhost in apache, so that when accessing the third level domain mickey.example.com, the app Mickey is served. This works. And this is its configuration:
Aerendir
  • 121
0
votes
0 answers

Are name based virtual hosts for non-web servers?

Does the concept of name based virtual host only apply to web server? Or also to other servers which are not web servers? I ask this because in web servers, named based virtual hosts are implemented by HTTP Host header. I don't see virtual hosts…
Tim
  • 1,517
0
votes
1 answer

vhosts migration from Apache 2.2 to Apache 2.4

I am moving from Apache 2.2 to 2.4 on Solaris 11.3. I have used Solaris Package Manager to install packages. I have had good success using vhosts.conf on 2.2 and so tried copying my vhosts.conf to the /etc/apache2/2.4/conf.d In order to save space…
0
votes
1 answer

Centos Apache Server Default IP DocumentRoot

For example, Centos 6.8, server ip 1.2.3.4, and some domain added inside vhost.conf NameVirtualHost *:80 ServerAdmin email@example_2.com ServerName example_2.com ServerAlias www.example_2.com DocumentRoot…
0
votes
1 answer

Change Apache DocumentRoot base on page url

Scenario: I have a http://www.example.com/ and I want my new project to be accessed via http://www.example.com/new. Here's what I tried: DocumentRoot /var/www/html/old/public/ Alias /new "/var/www/html/old/new/public/" # -> I tried The problem…
kdlcruz
  • 111
1
2