Questions tagged [virtualhost]

Questions relating to virtual hosting; that is, serving content for multiple logically-separate entities from the same machine. Usually relates to name-based virtual hosting in the web server, but can also cover other protocols such as SMTP or IMAP.

Filter by
Sorted by
Tagged with
0 votes
1 answer
146 views

How to install memcashed on a LAMP stack with PHP FPM?

I have a LAMP stack with PHP FPM and multiple virtual hosts with Wordpress sites on. I have tried to install memcashed using this tutorial. In Wordpress sitehealth I get: "You should use a ...
newcat1000's user avatar
0 votes
1 answer
2k views

Cloudflare Tunnel without having to also use noTLSVerify?

I’ve got a simple domain setup on an Ubuntu server running Apache (literally just displays a static HTML file); I set it up with LetsEncrypt and it was working without issue. I wanted a bit more ...
Pigeoni's user avatar
0 votes
0 answers
44 views

How do you set up multiple virtualhosts on apache2 using only the server ip and server alias?

I'm trying to set up apache with multiple virtual hosts "filebrowser.com" and "videos.com" however, I'm only able to access filebrowser.com and not videos.com. I also have to enter ...
Brenden Delong's user avatar
0 votes
1 answer
41 views

Having Trouble setting up 2 Virtual Hosts with SSL

Im trying to setup a second webserver on my machine however im running into problems with the virtual hosts and im not sure which file and what i should be changing. I have 1 server running with SSL ...
Scott Brookes's user avatar
1 vote
1 answer
521 views

How to create alias to url in Apache 2

I have main url like http://apps1.example.com and i want create alias like http://apps1.example.com/svc-base in my vhost config <VirtualHost *:80> ServerName apps1.example.com ...
Aleh's user avatar
  • 11
0 votes
1 answer
226 views

apache virtualhost not taked into account

I have multiple domains and i have imagined that one VirtualHost for each would be the way to go. glpi.localnet.lan is never loaded, whereas web.localnet.lan is always display instead, even if i tip &...
philippe's user avatar
  • 2,383
0 votes
0 answers
110 views

404 errors with Virtual Host in VPS Server

I'm trying to create a virtual host in my vps server but I'm receiving "HTTP Status 404 - Not found". My Virtual Host: vi /etc/httpd/conf.d/demonstracao.itcmedbr.com.conf <VirtualHost *:...
Cezar Apulchro.'s user avatar
0 votes
0 answers
66 views

Apache HTTP/2 Issues on Virtual Hosts

I have third-party domains pointed to my IP address using A records, and these are configured on the server using a Virtual Host configuration. Here's an example: Protocols h2 h2c http/1.1 <...
HWD's user avatar
  • 111
0 votes
1 answer
525 views

Apache virtual host not catching all requests

I have 80 port requests redirected to 443 like this <VirtualHost *:80> ServerName example.com ServerAlias www.example.com mail.example.com Redirect permanent / https://example.com/ &...
yaugenka's user avatar
  • 115
-1 votes
1 answer
1k views

Match VirtualHost by X-Forwarded-Host header

I am using apache 2.4 and would like to create multiple vhosts. The vhosts should be matched based on the X-Forwarded-Host header, instead of the Host header. Unfortunatly I could not find anything in ...
stena's user avatar
  • 101
1 vote
1 answer
345 views

Nmap - Print names from virtual hosts

I'm trying to identify virtual hosts with Nmap, command: nmap --script http-vhosts -p80 {ip} Nmap identifies a number of hosts. But how do I get the actual host names that are found? Now nmap only ...
AsusT9's user avatar
  • 11
0 votes
1 answer
44 views

How to create a local host that can be accessed through everyone on the same internet?

I've had an Apache Virtual Host working for a couple of month where workers on the office wifi could type in something like www.XYZ123.com and was able to access the website through their browser. Now,...
awakuruf's user avatar
0 votes
1 answer
473 views

Can't load Web API with SSL (ERR_SSL_PROTOCOL_ERROR)

So I can't get my head around this problem, and looked everywhere on the internet but did not found any working solution. 1.1. I have an apache server running as virtual host. In the initial situation,...
CharlZ's user avatar
  • 1
1 vote
1 answer
305 views

Postfix wildcard, virtual_alias, and recipient_delimiter forwarding glitch

Using Postfix with an MySQL backend, have a group of aliases set up, including domain aliases. Using '.' as recipient_delimiter, and have propagate_unmatched_extensions = canonical, virtual, alias. ...
Mark Milange's user avatar
0 votes
1 answer
932 views

Apache virtual host serving incorrect index.html file for one of two domains connected to server

I have two domains setup on a single server using Apache Virtual Hosts. The first domain (domainA.com) is loading the index.html file of the second domain (domainB.com), even though the first domain (...
Mike Hermary's user avatar
1 vote
1 answer
38 views

Advice on a catch all for https incoming but no cert installed

I am trying to think of an elegant way to handle an SSL / HTTPS issue we are having. I have read THIS QUESTION but it raises a slightly larger question in my case. Say I have these domains installed ...
Zak's user avatar
  • 356
0 votes
0 answers
2k views

nginx - server doesn't show requested site

So I installed nginx on a local Linux Virtual Machine (Ubuntu Server, if it matters) though apt, and created a slightly modified config file for my website following the default site's template: ...
Baltimoore's user avatar
0 votes
1 answer
528 views

Blocking Port 8080 from direct IP access but allow access via domain (Virtualhost Config)

I want to access web server from http://subdomain2.domain.com from URL but not from direct IP (http://1.1.1.1:8080). For instance, below is my virtualhost config file (site2.conf) in /etc/apache2/...
Bilal Bhatti's user avatar
0 votes
2 answers
161 views

If i find port X open on an ip address, is it safe for me to assume that i will find a web server at domian:X where domain resolves to the ip

Lets say www.example.com resolved to 36.45.6.x, and i port scanned that ip and ports 80,443,8080 came up and nmap tells me they all have http web servers running on them, is it safe for me to assume ...
hackerone member's user avatar
0 votes
1 answer
757 views

Request exceeded the limit of 10internal redirects on cPanel Server

I just created a subdomain called virtual from cPanel and its return 500 error. When I check the error_log I see below error: AH00124: Request exceeded the limit of 10internal redirects due to ...
Muhammad Dyas Yaskur's user avatar
0 votes
0 answers
18 views

How do I create a Virtual Name Host on Apache2 for a service running on localhost:8080 [duplicate]

i have a server with apache that runs a mailing service, a wordpress multisite I have followed guides online to make the above work now I have a service from Vaadin (java stuff) running on localhost:...
AltoFlower91's user avatar
1 vote
1 answer
46 views

Issue with Apache 2.4 and VirtualHosts

Can somebody tell me what I'm doing wrong here, I have 1 server running Apache 2.4 with 3 VirtualHosts in it, setup this way: <VirtualHost helpedsk.example.com:80> ServerAdmin [email protected] ...
Jorge Hernandez's user avatar
0 votes
1 answer
1k views

Apache VirtualHosts not working/redirecting? (Reverse proxy)

I am trying to set up Apache as a reverse proxy on a new Ubuntu 22.04 virtual machine. We have an existing Apache reverse proxy on Ubuntu 18.04 where everything is working as intended. This new ...
Manuel Sarica's user avatar
0 votes
1 answer
83 views

Inventory of all vhosts across multiple webservers

I was tasked to create an inventory of all websites/webapps hosted on our infrastructure (couple thousand sites hosted on around 120 Linux VMs). Most of the sites are served by Apache (httpd 2.4) but ...
Viesturs Eihentals's user avatar
1 vote
0 answers
431 views

Configuring different apps in Nginx using same domain

I have an ecommerce application running 2 applications. App 1 (example1.com) is written as react.js and built as a normal html site. Nginx is serving this on port 7000. App 2 (my.example1.com) is a ...
Bobj's user avatar
  • 11
0 votes
1 answer
4k views

Configuring virtual hosts; Need to just allow one ip address to access the website and deny all. What's wrong with the below code?

<VirtualHost *:80> ServerAdmin example.com DocumentRoot "C:/xampp/htdocs/example.com" ServerName www.example.com ServerAlias example.com ErrorLog "logs/example....
NARESH RAMINI's user avatar
0 votes
1 answer
2k views

using hostname instead of IP address in vpn [duplicate]

I server noob here and I've a problem at my hand, I've a VPN and there are several VMs connected to it, each host a specific service. These services are running on a specific port (3000,8080). So when ...
Alan's user avatar
  • 1
1 vote
1 answer
174 views

Consolidating many VirtualHosts into one block, is this a job for SetEnvIf?

Edit I think what I need here is SetEnvIf I'm attempting to consolidate all of my port-80 VirtualHosts into one block for convenience, but I'm struggling with the final piece of the puzzle. All port ...
Jeff's user avatar
  • 1,426
0 votes
1 answer
721 views

Why is htdocs not displaying directories when a virtual host has an error?

I just set up Apache v2.4, PHP and MySQL on new windows machine. I've made only a few changes to httpd.conf. I'm including httpd-vhosts.conf, which has 2 custom sites defined (I removed the default ...
EpF's user avatar
  • 11
0 votes
2 answers
604 views

Apache make site available to intranet and internet over same domain name

This is probably a stupid question, but I can't seem to find a solution to it. Following scenario: https://sub.doma.in:443 is hosted on my Apache server at home. Works great when connecting from ...
kraligor's user avatar
1 vote
1 answer
692 views

Serve new subdomains dynamically

I have a service example.com that needs to allow users to host a few files in their own subdomain userpage-userabc.example.com, similarly as does Github with userabc.github.io. I currently use Apache, ...
Basj's user avatar
  • 739
0 votes
1 answer
436 views

Apache2 VHost for subdomain

I configured several months ago my nextcloud on my Ubuntu 20.04.3 LTS VM running on my FreeNAS, following their tutorial so bear with me, I'm in no means a trained apache2 guru ;-) My current VHost ...
quintz's user avatar
  • 11
0 votes
1 answer
69 views

Can I make a folder on a vhost access a site held in another vhost?

I have two website codebases running on a domain as follows www.example.com (a WordPress site) Exists at: /var/www/example.com/public_html whitelabel.example.com (a Laravel site) Exists at: /var/www/...
AdamJones's user avatar
  • 113
1 vote
0 answers
14 views

Is a virtual server enough for a video uploading platform or do I need a hosting like AWS and Oracle? [duplicate]

I am developing a platform where the users can upload videos, ask for videos and download the videos uploaded by other users. I have developed the platform using Java Spring Boot, Angular and MongoDB ...
A H's user avatar
  • 11
0 votes
1 answer
3k views

Apache2: Why do I get a 403 Forbidden error?

I've been messing with this for days :( Why do I get a 403 Forbidden error at example.com/contact? Is this a file/folder permissions, Apache user, virtualhosts or Python issue? I'm trying to run a ...
BlueDogRanch's user avatar
0 votes
1 answer
565 views

apache2 virtualhost not forwardng to correct virtual host (now a registered user)

Apache 2.4 / Ubuntu 20.4 (Linux Mint 20.3) I am testing with 2 domain names, example1.com and example2.com I have followed instructions at https://www.digitalocean.com/community/tutorials/how-to-...
godfearer's user avatar
1 vote
0 answers
351 views

Apache and VirtualHosts in RedHat, Can't figure it out

already did my research and Im burned after reading and watching videos for hours; I can't make virtual hosts works at all, it doest matter which configuration I set but Apache will ignore it and ...
DefaultVLAN's user avatar
0 votes
2 answers
493 views

Apache2 SSL only works when virtualhost is removed?

I'm making a website hosted at sparrowthenerd.space, and I'm trying to have it use multiple subdomains so I can run NextCloud, OctoPrint, and a general webpage all from the same IP address. As I ...
SparrowTheNerd's user avatar
0 votes
0 answers
235 views

.xyz domain not recognized by apache2 as valid hostname

When I try to add a virtual host of my new domain name that ends with .xyz, apache tells me that it can't resolve the hostname : [Wed Jan 26 21:31:53.994125 2022] [core:error] [pid 25525] (EAI 5)No ...
Monsquid's user avatar
0 votes
1 answer
856 views

different configurations files to apache2?

I'm pretty new to this, and reading a lot online, but what configuration is right? in apache2, some are talking about httpd.conf, and have all configuration in one file. my installation have 2 ...
Adam Larsson's user avatar
0 votes
2 answers
72 views

Can I do https on some domains but not all on my site?

I have two sites (home server and linode VPS) and I have some subdomains of one domain on one site and some on the other. I also have two or three other domains on both servers. I currently use Apache ...
Paul Tomblin's user avatar
  • 5,235
1 vote
1 answer
1k views

Apache 2.4: Require (e.g. all denied) directive not honored

I'm running Apache 2.4.41 on Ubuntu 20.04 and am not able to get any Require directives working on my VirtualHost. As a minimum working example, my VHost file: <VirtualHost *:80> ...
MartinV's user avatar
  • 121
0 votes
1 answer
446 views

Certbot cannot check challenge because of Apache "Redirect / domain.com"

So there is this server that is all messed up but that is besides the point. I ran certbot and it failed. Checked the vhost for port 80. It has the blanket redirect. It dose not seem like it would ...
Meadowlark Marsh's user avatar
0 votes
1 answer
150 views

Ubuntu VirtualHost on port 8003 not working remotly

I trying create Apache Virtual Host on port 8003. My site configuration file (/etc/apache2/sites-available/test.oracle.dev.conf): <VirtualHost *:8003> DocumentRoot /var/www/html/test ...
Tomasz Filipek's user avatar
0 votes
1 answer
825 views

Private file storage area settings in Drupal 9.3 ($settings['file_private_path'] =)

I use Drupal 9.3 and I have created a private folder outside the root directory. I followed the documentation [link] and added the following line in my settings.php file in drupal: $settings['...
Abe's user avatar
  • 123
0 votes
1 answer
1k views

In LiteSpeed, where is $VH_ROOT defined?

After installing LiteSpeed, the first task when experimenting is often setting up a vhost. When we look around dashboard at various settings we come across some variables. One of which is $VH_ROOT. ...
user76615's user avatar
  • 133
-1 votes
3 answers
909 views

how to connect to one of multiple virtual sites (apache 2.4)

If I create one site, I can access it with http://localhost ... But if I create multiple virtual sites, with apache, on the same computer, http://localhost won't work. How can I access it? (on the ...
Adam Larsson's user avatar
0 votes
1 answer
23 views

Nginx not showing 404 when attempting a nonexistent folder

When trying to visit a folder that doesn't exist (i.e. https://domain/nonexistent) it just loads the root index.php. It does show 404 when attempting to load a specific file (https://domain/...
Joe Kelson's user avatar
0 votes
0 answers
40 views

stop mail.domain.com from browser

I have a mail server setup for a domain using postfix. For the ssl cert, I have created a virtual host for that mail server. The virtual host look like this <VirtualHost *:80> ServerName mail....
Saaram's user avatar
  • 101
0 votes
0 answers
510 views

Site can't be reached Virtual host Apache Manjaro

my httpd virtual host file all sites access expect sachin.new are accessible. "sachin.new" shows "site cannot be reached" <VirtualHost *:80> ServerAdmin sachin28new@gmail....
DAS CINE CREATIONS MUSIC's user avatar

1
2
3 4 5
56