Questions tagged [virtual-hosts]

Virtual hosts or virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).

Virtual hosts or virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).

This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same host name. The term virtual hosting is usually used in reference to web servers but the principles carry over to other internet services.

One widely used application is shared web hosting.

There are two main types of virtual hosting, name based and IP based. Name based and IP based virtual hosting can be combined, a server may have multiple IP address and serve multiple names on some or all of those IP addresses. This technique can be useful when using SSL/TLS with wildcard certificates.

241 questions
1
vote
1 answer

WAMP Server virtual hosts configuration

OK, I have my wamp installed and simply can't setup my virtual hosts properly. Here's what I have: Wamp install dir: F:\wamp Projects dir: F:\www # F:\wamp\bin\apache\apache2.4.2\conf\extra\httpd-vhosts.conf AllowOverride…
Andrei Stalbe
  • 1,511
  • 6
  • 26
  • 44
1
vote
2 answers

Set up apache with multiple virtualhosts

I'm having problem getting virtual hosts to work as I want to. I've been searching for the last hours but it feels like I'm more lost than before. So basically I want the following setup: http://test.localhost =>…
Andreas
  • 1,211
  • 1
  • 10
  • 21
1
vote
1 answer

Allow access to PhpMyadmin only on a specified virtualhost

I'm working on a multiple virtualhost Environment. I've installed PhpMyadmin for Mysql Remote Control. Environment is configurate as below: one.domain.com two.domain.com onlyphpmyadmin.domain.com Now, if i accesso to one of the three domains…
alesdario
  • 1,873
  • 6
  • 25
  • 38
1
vote
2 answers

Dilemma: realtime create virtual hosts or with a crontab?

I am developing a webhosting hosting controlpanel with codeigniter. So far so good. :) Now I am working on a solution creating virtual hosts. My shell script that creates the virtual host works, so my first thought was to fire that script in a…
1
vote
0 answers

apache2 force proxy for specific url on a subdomain

I have a site that has dynamic virtual subdomains using mod_rewrite, as defined like this: ServerName example.com ServerAlias *.example.com DocumentRoot /var/www/example.com/www RewriteEngine on …
Tony G.
  • 19
  • 3
1
vote
1 answer

apache mass virtual hosting with suexec and mod_fcgid

I followed Falco's tutorial and everything now works as expected for 2 users (e.g. john and alice) with their relevant directories (/var/www/john and /var/ww/alice). Now, I want to go to the next level: instead of defining different vhosts at…
centurian
  • 1,168
  • 13
  • 25
1
vote
2 answers

Tomcat 7 (Virtual hosts?)

I want use my web application on port 8082 (for example), and it is working correctly. But I want to leave connection on port 8080 (with default Tomcat page), can I do it and how?
indapublic
  • 2,208
  • 9
  • 38
  • 49
1
vote
1 answer

Server name for apache virtual host isn't working properly

I'm trying to create a virtual host in apache so I can access a local site via localhost but using a different port than the default :80, what I want is that http://localhost:8080 loads my site directly in the folder I specify, I have the following…
Javier Villanueva
  • 3,886
  • 13
  • 48
  • 80
1
vote
1 answer

Define local site in Apache - Use port other than 80

I'm wondering if anyone can help me define a new local VirtualHost using Apache. The goal is to have a site that is viewable only from the local network (hidden behind a firewall). Right now I have Webmin installed and it runs on transaction:10000.…
citizenen
  • 703
  • 6
  • 24
1
vote
1 answer

htaccess https for several subdomains

I have virtual hosts ServerAdmin webmaster@server.com ServerName server.com ServerAlias subdomain-a.server.com subdomain-b.server.com subdomain-c.server.com subdomain-d.server.com DocumentRoot…
dr0zd
  • 1,368
  • 4
  • 18
  • 28
1
vote
1 answer

Issue with Virtual Host on Zend Server CE and Mac OSX

I'm using Zend Server CE 5.6.0 on Mac OSX. My httpd.conf has the following line, adding the virtual hosts file: Include conf/extra/httpd-vhosts.conf At that file, I have the following: NameVirtualHost *:80 ServerName…
Daniel Ribeiro
  • 10,156
  • 12
  • 47
  • 79
1
vote
1 answer

apache - RewriteEngine doesn't work outside Directive

I'm trying to configure apache to redirect the requests containing only hostname (domain) to another path. I found the following directives useful, but as long as those are enclosed in VirtualHost, put in site_available folder (/etc/apache2/) and…
smbatpetrosyan
  • 609
  • 1
  • 6
  • 11
1
vote
2 answers

Setting Up Apache Virtual Hosts on a Drive Other Than C:

I've successfully set up virtual hosts before on my C: drive, but now I want to set some up on my D: drive. I follow the setup instructions here, but when I click the WAMP icon to restart all services, the icon doesn't return to green. Does anybody…
pixelcook
  • 47
  • 4
  • 9
1
vote
4 answers

apache php Virtualhost

I am trying to implement virtual host in my system. I have used the below code for that. NameVirtualHost *:80 ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/Users/shanker/Documents/content_booking/" …
user1306297
  • 21
  • 1
  • 2
0
votes
2 answers

Symfony: many projects in many different domains

I'm learning Symfony right now. I created 2 Symfony projects with 2 different domains. Nevertheless, my second domain points to the first, and don't know why. I'm following this tutorial, the famous jobeet: http://www.symfony-project.org/jobeet/1…
user935375