Questions tagged [virtualhost]

The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.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.

The term Virtual Host refers to the practice of running more than one web site (such as www.company1.com and www.company2.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.

3113 questions
0
votes
1 answer

docker docker-compose multiple sub.domains with SSL/ port 443 & Apache ssl.conf VirtualHost and Dockerfile

how can I use sub-domains without the need to use a port number attached to the sub_n.domain.com:444 I do have: multiple sub.domains.com via DNS redirected to my VPS (sub1. sub2. sub3.) every .sub_n shall be connected with its own…
flowfab
  • 99
  • 11
0
votes
1 answer

MAMP Pro - is there a way to sort virtual hosts?

I have many Virtual Hosts configured in MAMP Pro. In the Hosts Table, they are listed in the order in which they were created, which is not very convenient. Does anyone know of a way to sort them alphabetically for example?
migli
  • 2,692
  • 27
  • 32
0
votes
1 answer

.htaccess or VirtualHost to block website from direct IP access, yet allow from URL only

I have blocked direct access to my site using IP via virtual host. However, i am not able to use 403 error template defined as error.php Since error.php is located at /var/www/html/error.php, so its blocked automatically and it errors out…
0
votes
1 answer

How to communicate with a backend built with lumen and served with apache virtual host from a Vue frontend?

I have a Vue frontend through which I want to communicate with a backend built with lumen. I have the backend on apache virtual host. It is a local development setup. The virtual host works and I can access it from http://dawn.axeapi.com/ and…
Frank Shrestha
  • 103
  • 1
  • 6
0
votes
2 answers

How to disable Pretty URL in Laragon

How can i completely disable pretty URL feature of Laragon, so for example right now by default in Laragon pretty URL is set as {name}.test where {name} is root folder and test is any string of our choice. so in Laragon i access my wordpress admin…
Tarun Mahashwari
  • 338
  • 1
  • 10
  • 19
0
votes
3 answers

Apache website conversion from alias to virtualhost

I have to take over an internal Web server that has been configured by a colleague who is no longer there. Our developpers team asks me to convert applications URLs from an Alias to a Virtualhosts (subdomain naming) system. For…
wiltomap
  • 3,933
  • 8
  • 37
  • 54
0
votes
2 answers

Virtual hosting in Tomcat 7

I'm trying to have virtual hosts in Tomcat 7.0.20 WITHOUT rename everything ROOT AND WITHOUT using Apache http server in front Steps done so far put fake domain in windows host file 127.0.0.1 fakedomain.com Started Tomcat and logged into Host…
0
votes
0 answers

Why am I getting HSTS error in virtual host?

I have created a virtual host on my windows machine but whenever I enter the link I get an HSTS error: I am using XAMPP to run the PHP server. My configuration is as follows : The hosts file in C:\WINDOWS\System32\drivers\etc : The httpd conf…
Starnec
  • 551
  • 1
  • 5
  • 15
0
votes
3 answers

403 Error - Apache VirtualHost - Ubuntu 22.04

i recently install ubuntu 22.04 and try to use LAMP on it. but i have problem with VirtualHost. i want use virtualhosts with a local domain like: test.local i added this domain to /etc/hosts and add this configuration to my…
Soroush Tayyebi
  • 137
  • 1
  • 9
0
votes
0 answers

Subversion on certain Virtual Host

I have a VPS, where I host a website of mine and some Subversion repos. I use the SVN DAV Apache mod, to interact with my repositories. My problem is that, if my website is www.example.com, I access a repo like this :…
Paris
  • 6,323
  • 7
  • 31
  • 49
0
votes
1 answer

Cannot access MapServer when using Let's Encrypt HTTPS on Apache2

I have recently built a website using MapServer for an academic course. The course is finished, but I wanted to continue developing it. The website is using Apache/2.4.53 (Debian), running on Debian 11, set up as a Virtual Host. I have recently…
user19425
  • 11
  • 3
0
votes
0 answers

Why is apache 2.4 using the wrong certificate chain even though I have specified a different certificate bundle in my virtualHost configuration

I am trying to get ssl working on an oracleLinux server running apache httpd 2.4.37. My virtualHost block is as follows: ServerName phxacrstage.oraclecorp.com:443 DocumentRoot…
dnraikes
  • 275
  • 1
  • 4
  • 14
0
votes
1 answer

apache virtualhost site using .htaccess not working

I am running brew/apache on on my local machine (mac-os monterrey). I want to configure virtual hosts. The lookup for one of the virtual host (panierssaison.local) does not work, ending in a server not found error after a few seconds delay. Apache…
fayong lin
  • 214
  • 2
  • 15
0
votes
1 answer

Apache virtual hosts on subdirectories

I am trying to setup Apache to serve multiple apps on one IP-Address over subdirectories. Lets say, I would like to access App1 over http://aaa.bbb.ccc.ddd/app1 and App2 over http://aaa.bbb.ccc.ddd/app2. Both, App1 and App2, are independent django…
Blackbriar
  • 477
  • 4
  • 14
0
votes
0 answers

Create a Localhost(Virtualhost-configured) SSL Certificate in Ubuntu 20.04 with XAMPP

Just wanted to know the way to generate ssl for my localhost using Ubuntu 20.04 with installed Xampp. I wanted to use the Apache that comes with the Xampp (which means I don't have the external Apache installed via apt. I also have used virtual host…
Shironekomaru
  • 361
  • 1
  • 6
  • 15
1 2 3
99
100