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
0
votes
1 answer

Virtual hosts redirecting incorrectly

Hi guys I'm having problems with the following virtual hosts: ServerAdmin webmaster@localhost ServerName www.domain1.com ServerAlias domain1.com *.domain1.com DocumentRoot /var/www/vvr Options FollowSymLinks …
Pablo
  • 3,433
  • 7
  • 44
  • 62
0
votes
1 answer

Apache virtual-host not working correctly for subdomain

I've got a site set up on localhost that I'm actively developing, and I'd like to set up a subdomain on localhost to make my life 10* easier. I added this to C:\xampp\apache\conf\extra\httpd-vhosts.conf: ServerAdmin…
Josh
  • 1,361
  • 5
  • 22
  • 33
0
votes
2 answers

How to filter Apache virtual host listing using grep

I have an Apache server configured with many virtual hosts and would like to be able to filter them using grep like so.. # httpd -S | grep "myStr" .. however, this approach doesn't work - I'm still seeing all my virtual hosts listed. Any ideas how…
Xoundboy
  • 827
  • 15
  • 26
0
votes
1 answer

Hosting personal pages over a Redmine installation

I currently installed redmine on my server, and configured apache2 to run it in a virtualhost over mydomain.com Thing is I also want to host some extra pages, at mydomain.com/personal, but since redmine is running the page is never found. How can I…
rfsbraz
  • 2,101
  • 1
  • 18
  • 26
0
votes
2 answers

After setting up virtual host in zend framework project image are not visible

My project structure is like following --- / public .htaccess index.php template ........... data uploads (all the uploaded image by this application) ..................... like these before setting up virtual host for this project alls…
0
votes
1 answer

apache2 vhost redirection

I have defined differents hosts in my windows host file, one for every project release (rc1, rc2 etc..) I would like to create one vhost per release so I can redirect directly to its subdir, for example : pp15.mv =>…
kitensei
  • 2,510
  • 2
  • 42
  • 68
0
votes
2 answers

Nginx and Phusion Passenger (Configuring mutliple Virtual Hosts)

I am trying to setup multiple Ruby on Rails apps on my local machine with Phusion Passenger and Nginx. Unfortunately I can't seem to find a good solution for doing this with a google search. Some solutions I've seen included creating a symlink but…
alvincrespo
  • 9,224
  • 13
  • 46
  • 60
0
votes
1 answer

docker nginx-proxy config per virtual host

I use this to generate a nginx-proxy in my ubuntu docker environment: https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion Then I created many container with virtual hosts for my different domains. One of these containers…
mdede
  • 27
  • 7
0
votes
1 answer

Virtual host redirection not working in apache

i have created a simple virtual domain http://team.xyz.ae once i hit this URL i want to redirect this to http://team.xyz.ae/users/login but now its redirecting to…
Soubhagya Kumar Barik
  • 1,979
  • 20
  • 26
0
votes
1 answer

Virtual host will NOT work in MAMP but works on localhost:8888

Created a new Laravel project in htdocs in MAMP. Followed all the steps, added virtual hosts, changed conf file, etc/hosts, restarted mamp and my pc several times but I just can't get my virtual host to run. however, when I am in the MAMP Dashboard…
asus
  • 1,427
  • 3
  • 25
  • 59
0
votes
2 answers

Apache Virtual Hosts Non-www not working

I'm setting up a Virtual Hosts file on my CentOS 7 box and I'm having trouble getting my domain to resolve correctly. Here's what my current /etc/httpd/conf.d/vhost.conf file looks like NameVirtualHost *:80 ServerAdmin…
Marty
  • 289
  • 2
  • 14
0
votes
1 answer

All hosts in MAMP Pro installation serving same host/root, even if that one is disabled?

I have 8 virtual hosts set up in MAMP Pro. Only one do I use on a daily basis. Today I tried to set up a new one and discovered that it, and other hosts I have previously used without a problem, is not serving the content from the correctly…
Sapphireblue
  • 104
  • 2
  • 15
0
votes
1 answer

Can nginx support URL based server blocks (VirtualHosts)?

Note: “VirtualHost” is an Apache term. NGINX does not have Virtual hosts, it has “Server Blocks”. (https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/). I know about ip-based and name-based server blocks, but is it possible to…
Edward Ned Harvey
  • 6,525
  • 5
  • 36
  • 45
0
votes
1 answer

Golang webapp with Apache multiple VirtualHosts

Unfortunately I've not been able to deploy a basic Golang WebApp on production server. After going through many documentation and tutorials I understood that I need to run Golang WebApp as a Daemon. First things first: the production server is a…
Odd
  • 563
  • 8
  • 20
0
votes
0 answers

Problems with url containing www in website name

I have a website at lets say - abc.com Whenever, a user hits abc.com, I redirect him (using an index.php) to abc.com/home.php. Now a user can login on this page, and go around with his work. Problem comes, when someone explicitly types www.abc.com…
zookastos
  • 917
  • 10
  • 37