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

How can I make three apps using same domain name work together

Hy, I have 3 apps that I have to make them work without interfering with each other.I'm working on an application where the clients (after registration) can have a subdomain.For this I'm using dns wildcards The flow is: I have the company website…
Claudiu
  • 1
  • 1
0
votes
1 answer

Better VHOST management in Nginx?

My nginx.conf file is getting larger and large with dozens of vhosts repeating the same lines over and over. I was wondering if there is anyway to declare the following globally without having to repeat them for each project: # Route all requests…
Xeoncross
  • 55,620
  • 80
  • 262
  • 364
0
votes
1 answer

Adding external source in /etc/hosts linux

As we know that we could actually add external source file from our ~/.bashrc file. For example I have a list of my custom aliases to be included inside it. To do it I simply add inside the file: source /path/to/my/external/file or I could simply…
JoenMarz
  • 143
  • 3
  • 13
0
votes
2 answers

Cakephp redirect not working on virtual host

I would like to tell you about the problem I´m having now. The thing is that I moved my cakephp project from the test enviroment to the production enviroment, the production server handles some virtual servers. So, i placed my project in…
Jhon Charles
  • 119
  • 3
  • 15
0
votes
1 answer

How can I run ASP.NET Web Application project as a Virtual host , without Visual Studio?

I have an ASP.NET Web Application that I run from Visual Studio , it uses multiple Nuget packages and SQL Server . Is it possible to run it without Visual Studio , using a virtual host ?
JAN
  • 21,236
  • 66
  • 181
  • 318
0
votes
1 answer

CentOS Apache VirtualHost default

I have set up some virtal host to distinguish between my subdomains (/etc/httpd/conf.d/*.conf). This was working on my old server (Debian 7). But now if I browse the root page I get the first defined VirtualHost displayed. Also if I am browsing an…
Pascal
  • 2,059
  • 3
  • 31
  • 52
0
votes
0 answers

Websphere url mapping

I have an application installed on a WebSphere 8.5 application server which respond to the url: host_or_ip:9081/Stuff. The requirement is that when i call the url host_or_ip:9080/Stuff. the request goes to: host_or_ip:9081/Stuff without going back…
0
votes
1 answer

Apache virtualhosts editing not responding

How is it possible for an Apache web server to not have any entries in its /etc/apache/sites-enabled directory but still serve websites? I am running an Apache web server on Ubuntu 14.04.2 LTS. I have more than 20 websites responding correctly on…
sisko
  • 9,604
  • 20
  • 67
  • 139
0
votes
1 answer

MAMP multiple virtualhosts not working

Somehow my virtualhosts won't work and give me The requested URL / was not found on this server. I have tried multiple things, but can't get it to work. My MAMP root folder is set to the Projects folder I have the following folder…
DaViDa
  • 641
  • 1
  • 8
  • 28
0
votes
1 answer

Wildfly 8.2/Undertow - properties placeholder does not seem to work for alias attribute in host configuration

I'm trying to generalize Wildfly (8.2 Final) XML configuration in order to have a single configuration XML file with references of system properties (${what.ever.value.key.from.proerties}) in order to distinguish dev. and prod. env. by different…
Korvin
  • 35
  • 1
  • 7
0
votes
0 answers

How to redirect an incoming request to specific serverName to different server in apache2?

I've been playing with the http-vhost.conf file in apache2 in order to achieve the following: I got two domains: domain1.co.uk (app to be hosted by apache2 on port 80) domain2.com (app to be hosted by glassfish on port 8080) I have configured…
0
votes
1 answer

apache 2.4.10 error 403 on aliases

I updated my apache server to 2.4.10 from version 2.2.x on debian7 and I have problem with multi virtual hosts. When I try to load page I have forbidden [403] error. If I enable only one alias the page works fine, when I try to enable another page,…
kerog
  • 1
  • 1
  • 5
0
votes
1 answer

Apache 2 /httpd vhost dynamic documentroot

I have an app in folder /var/www/test Also there is an "sub-app" in folder /var/www/test/subapp (There is another index.php inside If user will type test.com the index.php of test should trigger but when user type test.com/triggersubapp the…
Mr.TK
  • 1,743
  • 2
  • 17
  • 22
0
votes
1 answer

Access forbidden: You don't have permission to access the requested directory

I'm running an ubuntu server on oracle virtualbox from windows. I have installed a symfony2 website(lets say that it's called pepper.com) on the server under var\www, but no matter how I configure my xampp\apache\conf\extra\httpd-vhosts.conf file,…
0
votes
0 answers

Virtualhost setup on localhost displays indexof

I'm attempting to set up a virtual host on Windows vista32. I keep getting a listing of the root folder htdocs instead of the site I've setup. Here's my virtual host entry in Apache httpd-vhosts.conf: ServerName…
Flim Flam
  • 197
  • 4
  • 15