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

Laravel 5 on Virtual machine on Windows

I'm setting up an existing Laravel app onto a Windows machine for testing. The windows machine has a virtual machine setup and is running Linux. I've edited the Windows hosts file to include the IP address and if I go to http://app.dev I can see…
TH1981
  • 3,105
  • 7
  • 42
  • 78
0
votes
1 answer

Apache VirtualHost confusion when using alias

So I have a setup that looks as follows: www.mydomain.com - runs a complex multisite Wordpress install www.mydomain.com/othersite - for various reasons this needs to run a totally separate install of Wordpress, but the URL must be in this format for…
0
votes
0 answers

All Apache virtual hosts shows default website page

Here is a problem. I am running on CentOS 7 with Httpd(Apache) installed. After installation default DocumentRoot is /var/www/html. And my site domain is avect.ru. Then I've created a virtual host with the link cp.avect.ru. But when I enter it, it…
Andrii H.
  • 1,682
  • 3
  • 20
  • 40
0
votes
0 answers

Connecting to multiple site in one server/ip, does port being used related?

This problem is related to Host Multiple Domains on One Server/IP I firstly did the CI project in my localhost. As such, there are some issues I encountered when connecting server-local, referred at What is the possible setting for Codeigniter…
andil01
  • 377
  • 4
  • 19
0
votes
1 answer

Apache Virtualhost ServerName/Server Alias Query

I'm setting up named virtual host configurations for a domain e.g. www.examplesite.uk Which of the below name & alias definitions would be preferable? Is there a difference? I've seen various examples online where it's both ways round. ServerName…
SB_77
  • 11
  • 5
0
votes
1 answer

Apache Admin/Manager page lost after adding Virtual Hosts

I wanted to host a couple of websites (and apps) on the same VPS, so my idea was to have it like this: Site 1 - HTML content only Site 2 - PHP and HTML content Site 3 - Java / SpringBoot app Site 4 - Python app Site 5 - Java / SpringBoot app So…
milosmns
  • 3,595
  • 4
  • 36
  • 48
0
votes
1 answer

Combine two virtual hosts in one domain with a subdirectory

I have a website example.com served by Apache, and example2.com redirected to port 3001 (using NodeJS). It works with this config: ServerName www.example.com DocumentRoot /home/www/example Options…
Basj
  • 41,386
  • 99
  • 383
  • 673
0
votes
1 answer

Multiple proxy reverse for one Virtual Host

I have a server which we use to test some services. It's basically a server where devs can run some containers in order to run some tests. What I'm trying to do is proxy reverse some url patterns into some containers. For example, this is what I…
Lucas Beier
  • 621
  • 1
  • 7
  • 19
0
votes
1 answer

How to deny https requests to my servers public ip address

I have a server running Apache 2 that has 6 virtual hosts. All the virtual hosts run over SSL. However if you make a request to my server's IP (for example: https://11.22.33.444) since there is no certificate for my IP you are redirected to the last…
Tyler
  • 73
  • 2
  • 11
0
votes
3 answers

Block access to a config file from external request but not internal in Apache2 Virtual Hosts

so I have a config.json file which I want to block external connections for such as people accessing it directly, It's required for my script to run on so I want to whitelist only my own server which is hosting the file and not any external…
0
votes
2 answers

Redireting Https requests on Apache for Wildfly

I am using Apache Virtual Hosts to run multiple websites. I am using apache in Front and this apache is redirecting the url request to the wildfly Server. My Apache Configuration is working fine for http request using below code
Tarun
  • 271
  • 1
  • 6
  • 18
0
votes
1 answer

Running Magento behind NAT?

I'm trying to run Magento behind NAT, where the nat port is not 80 ? F.e. www.mysite.com:4444 =to internal=> 192.168.100.10:80 The problem is that it seems that the front page loads dynamically the rest of the site... This is how the beginning of…
sten
  • 7,028
  • 9
  • 41
  • 63
0
votes
2 answers

Where location log file httpd server

Please help, I am actually not a server admin, I just want to know, my server has some virtualhost, for example: ServerAdmin arif@dummy-host.example.com DocumentRoot /var/www/testing/ ServerName cg.blender.com ErrorLog…
arifoxs
  • 9
  • 3
0
votes
1 answer

Virtual host for angular 2 application in apache 2 not working

I need to create a virtual host or domain for my angular 2 application. In brief, i had followed the below steps: 1) Created virtual host file for my site (From:…
phyme
  • 331
  • 2
  • 11
  • 25
0
votes
1 answer

Host Multi domains on Linux ( Ubuntu ) from Linode.com provider with Apache 2.4

I have a Ubuntu from Linode.com. I'm trying to host multi website ( domains, each will listen to different ports ). Here is what I did: In file mysite.com.conf: Listen *:81 ServerName mysite.com ServerAlias…
V.Tran
  • 457
  • 1
  • 5
  • 13