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
2
votes
2 answers

How can I redirect requests to specific files above the site root?

I'm starting up a new web-site, and I'm having difficulties enforcing my desired file/folder organization: For argument's sake, let's say that my website will be hosted at: http://mywebsite.com/ I'd like (have set up) Apache's Virtual Host to map…
Limo Driver
  • 135
  • 1
  • 3
  • 8
2
votes
0 answers

apache cyrillic wildcards in virtualhost config

there is a question. I have project with many subdomains and it is configured like this: VirtualHost1: ServerAlias a*.example.com VirtualHost2: ServerAlias b*.example.com VirtualHost3: ServerAlias c*.example.com It works very good. And now I need…
2
votes
2 answers

vhosts not working on windows 7 using wamp

i'm having trouble setting up vhosts on windows 7. i'm running wamp. my host file includes: 127.0.0.1 local.tribune.com i've included httpd-vhosts.conf from within my httpd.conf. my httpd-vhosts.conf includes: DocumentRoot…
user530860
  • 33
  • 5
2
votes
2 answers

Apache serving files from non-existent directories

I am sure I have goofed up somewhere in my configs. So this is what is happening. My document root does not have any folder called "2". Yet, if I access, for example, http://www.mostpopularsports.net/2/poll.php or even some totally crazy url…
JP19
2
votes
1 answer

Error when setting up VirtualHost in Wamp - The ServerName has syntax error in file httpd-vhosts.conf

I am trying to move a live wordpress website to a local site on my computer so that I can make changes and try things out without messing up the live site. I am using WAMP on a Win7 PC. I went through all the steps...installed WAMP and downloaded…
Jen
  • 23
  • 1
  • 3
2
votes
1 answer

How to access vagrant guest servername?

I installed Vagrant,set up vagrant box as per the tutorial of the site Hashicorp, i have set up the port forwarding, the private network with a unique IP, and folder syncing. Here is what I have when I SSH in : login as: vagrant vagrant@127.0.0.1's…
Yvon Huynh
  • 453
  • 3
  • 16
2
votes
1 answer

How to configure apache to serve directory for custom domain

Currently, I have configured a domain I bought through GoDaddy to point to the elastic ip address of my personal ec2 instance. I'm having issues finding the correct solution to configure my httpd.conf such that my custom domain, example.com points…
2
votes
1 answer

SSL Certificates and Apache Virtual Hosts

I am encountering a very curious problem with my ubuntu server setup. I am running a few websites using a LAMP stack. One of the websites has a dedicated ip and a comodo ssl certificate. The other websites are on a shared ip and use let'sencrypt ssl…
scuttle-jesuit
  • 648
  • 1
  • 5
  • 16
2
votes
1 answer

os x MAMP apache virtual host laravel project misconfigured

MAMP is installed in a MacBook. I use the MAMP apache. Based on many online resources, I have done the following: I added 127.0.0.1 my-site.local to file /etc/host. I uncommented Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf…
Matilda Yi Pan
  • 658
  • 2
  • 8
  • 26
2
votes
0 answers

apache virtual host status

I'm trying to get status information about my Apache virtual hosts. I currently setup apache (2.4) mod_status on my apache server hosting several virtual hosts. All retrievable through a single IP-address, but with different ServerNames. When I…
Hans73
  • 21
  • 2
2
votes
1 answer

Hosting multiple virtual-hosts/domains in wildfly

This is related to two posts - Hosting multiple domains with WildFly (Undertow), WildFly -> Undertow -> maping subdomain to war file not working The workaround with creating/editing jboss-web.xml does not seem to be working. I tried this workaround…
GPN
  • 53
  • 1
  • 7
2
votes
2 answers

apache2 not working for different ports

I want to be able to run apache on two ports having two different document roots one with var/www folder and another with some other folder.Below is my default file in sites available. But whenever I hit 127.0.0.1 the index in the first virtual host…
nnm
  • 1,335
  • 5
  • 18
  • 32
2
votes
1 answer

Virtualhost redirect non-existent subdomains and remove www

I would like to set up my virtual hosts to do the following. For background, before I had access to virtual hosts, I did this on another server in .htaccess using entirely rewrite. As you can assume, this was extremely slow. Requests to example.com…
theherk
  • 6,954
  • 3
  • 27
  • 52
2
votes
1 answer

Configuring VirtualHost together with localhost on VertrigoServ 2.29

I use VertrigoServ as my Apache - MySql - PHP stack. Up till now, I used to put all sites in the /www folder and access them by the url http://localhost/sitename. Now I'm developing a multilanguage site. The site's idiom will be set according to the…
Rodrigo Balest
  • 326
  • 10
  • 17
2
votes
3 answers

Can I use google to determine vhosts on same IP?

Can I use google -- specifically i am thinking of the google ajax api -- to enumerate a list of host names of websites that are hosted on a particular IP address. Note Yes, I know that other mechanisms, such as MSN search and obviously DNS services…
Cheekysoft
  • 35,194
  • 20
  • 73
  • 86