Questions tagged [vhosts]

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...)

A virtual host of a HTTP/HTTPS webserver (virtual host in Apache, server block in nginx, ...). Use this tag if your question refers to configuration and/or bugs in relation to the virtual host you configured for your application.

The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.

Apache was one of the first servers to support IP-based virtual hosts right out of the box. Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts.

https://httpd.apache.org/docs/2.4/vhosts/

1009 questions
2
votes
2 answers

XAMPP (WIN7) port change and vhosts

I've decided to change the ports for Apache to clear up some conflicts with other applications, and maybe even give IIS a shot in the future. I've run into the problem described below. The basic context: WIN 7 x64 XAMPP 1.7.4 (Apache 2.2.17, MySQL…
2
votes
1 answer

How to limit number of connections per vhost in apache2?

Is there a way to limit number of connections per vhost in apache2? MaxClients is global per apache instance. And I want to limit number of clients per vhost, so 1 specific vhost wouldn't be able to take all available connections. Please…
Dima L.
  • 3,443
  • 33
  • 30
2
votes
0 answers

Google Chrome: how to bypass SSL check for develop purpose

I need to test a web application on localhost with a custom domain name es: my.domain.com using the HTTPS protocol (I'm using self signed certs). I've setup a vhost in my httpd.conf and added an entry to my /etc/hosts file 127.0.0.1…
HK15
  • 737
  • 1
  • 14
  • 32
2
votes
2 answers

Amazon EC2 Apache Symbolic Link Not Allowed

I have created an Amazon EC2 instance and installed Apache and PHP on it: $ sudo yum install apache2 $ sudo yum install php $ ls -al /var/www/services/ lrwxrwxrwx 1 root root 42 Jun 22 21:13 production -> /home/ec2-user/services The I have…
eistrati
  • 2,314
  • 6
  • 26
  • 35
2
votes
1 answer

nginx configure wildcard domains with different certificates

In my little virtual-hosts config with nginx I encountered a new problem. I tried to setup a "webmail" subdomain for every one of my virtual hosts using a server_name wildcard server_name ~^(webmail\.)?(?.+)$; as all my domains have their…
Martin L.
  • 23
  • 3
2
votes
1 answer

Celery with Rabbit MQ Virtual Host not accepting tasks from app.tasks.py in Django

Help needed! PS: I have already created Virtual Hosts using this link Celery and Vhosts settings.py CELERY_BROKER_URL = 'amqp://flash:flash_education@localhost:5672/flash' celery.py import os from celery import Celery from django.conf import…
Nauman Arif
  • 21
  • 1
  • 6
2
votes
1 answer

nginx + fpm rules problem; File not found or script is downloaded instead of being executed

I'm refactoring a very old application and i'm stuck on Nginx configuration; All my tries ended up the PHP script being downloaded instead of executed, or ended up with "File not found" Directory Structure public │ └─── front │ │ index.php │ │…
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
2
votes
1 answer

Laravel Valet with Apache + dnsmasq

I have Laravel Valet installed and configured to .loc domain (was working just fine) Then I needed Apache server alongside with Laravel Valet, so I followed these instructions: https://getgrav.org/blog/macos-mojave-apache-mysql-vhost-apc I…
4unkur
  • 827
  • 9
  • 14
2
votes
3 answers

This site can’t be reached - XAMPP ignores custom domain vhosts

Environment XAMPP 7.2.4 installed on Windows 10 Apache running on ports 80 and 443 Configuration C:\Windows\System32\drivers\etc\hosts: 127.0.0.1 www.test.local test.local C:\xampp\apache\conf\httpd.conf: DocumentRoot "D:/htdocs"
cespon
  • 5,630
  • 7
  • 33
  • 47
2
votes
0 answers

Redirect request to node application running in different Ports based on subdomains in a linux server

I have two application running in CentOS on Ports 3000 and 4000. We have configured in F5 load-balancer to redirect any request that is coming to *.test.example.com to the application running in port 3000. But we are trying to point only a…
pri05
  • 75
  • 1
  • 11
2
votes
1 answer

Spring boot - Spring security behind Apache reverse proxy

I have 3 spring-boot apps : front (angular wrapped in springboot) on :8084 resource (spring boot) on :8082 authentication (spring-boot spring security) on :8081. Here my Vhost : ServerName www.website.com Redirect /…
Lempkin
  • 1,458
  • 2
  • 26
  • 49
2
votes
1 answer

Apache Vhosts HTTP and HTTPS (both) redirect to another domain

I am trying to redirect both versions of Domain-A (HTTP and HTTPs) to another domain Domain-B. Pretty simple stuff but not that simple. See what i am currently doing now: ServerName DOMAIN-A.com ServerAlias…
Santiago
  • 21
  • 1
2
votes
1 answer

ProxyPass worker name (*long url here*) too long

I have a URL www.example.com. This should point to the page www.data.city.author/blah/blah/fjfjf/fkkeklf/eied/shudfj and show the content in www.data.city.author/blah/blah/fjfjf/fkkeklf/eied/shudfj but in the address box, it should show…
pradeep
  • 21
  • 1
  • 3
2
votes
1 answer

NodeJS Express - Two NodeJS instances on same port (vhost)

I'm trying to run 2 instances of NodeJS on the same port and server from diffrent server.js files (diffrent dir, config etc). My server provider gave me an information that vhost is running for a diffrent domain, and there is the question. How to…
Patryk Panek
  • 405
  • 4
  • 20
2
votes
1 answer

vhost configuration for docker image

I'm trying to build a docker image for local PHP development based on openSUSE, PHP7 and Apache 2.4. Apache should resolve... http://localhost -> /srv/www/htdocs (openSUSE standard) http://myapp -> /srv/www/myapp/public…
Barret Wallace
  • 155
  • 3
  • 13