Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
3 views

Multiple Virutal Host with routes centos7

I have multiple apps to run with different routes, this one (Vue js) to localhost/ <VirtualHost *:80/> ServerAdmin webmaster@localhost ServerName 157.230.252.88 DocumentRoot /var/www/...
0
votes
0answers
11 views

Poor man's virtual GPU, using a multiuser OS + GPU, instead of specialist vGPU card?

I've read about this system in a white paper somewhere, but can't remember where, or any details, and haven't found it since. The comment was in regard to GPU virtualisation with Type 1 (bare metal) ...
1
vote
1answer
100 views

Running two websites with two subdomains httpd

I have a domain example.com with two subdomains: website.example.com and cloud.example.com. I set an A-Record for both of them to my server's IP address. my server is a VPS with centos7 and has two ...
0
votes
0answers
7 views

Issue with multiple virtual hosts with multiple certificates

I have multiple domains which each have a wildcard encryption certificate. I also have different subdomains which have different document roots. Here's the issue: <VirtualHost _default_:443> ...
-5
votes
1answer
43 views

Is a web server able to know the hostname which was resolved to the IP address of the web server? [on hold]

For a web server, name based virtual hosting uses hostname specified in the Host header in a HTTP request received by the server. Is a web server able to know the hostname which was resolved to the ...
-1
votes
1answer
39 views

In virtual hosting via IP address and via port number, how does a web server find out the IP address and port number?

In virtual hosting via IP address or virtual hosting via port number, a web server decides which web site to serve based on the IP address or port number that a request was sent to. When a web ...
-2
votes
1answer
40 views

Are the hostname resolved by DNS and the hostname resolved by web server for virtual hosting independent of each other?

Are the following two independent of each other: the hostname resolved by DNS and the hostname resolved by web server for virtual hosting ? Thanks.
0
votes
0answers
27 views

Domain redirects to wrong nginx vhost site

I have ubuntu 18.04 server with 2 dedicated ip addresses: eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 195.161.41.218 netmask 255.255.255.0 broadcast 195.161.41.255 ...
4
votes
3answers
2k views

When specifying a “host name”, do we still need to specify a port?

https://en.wikipedia.org/wiki/Virtual_hosting says Name-based virtual hosts use multiple host names for the same IP address. Does a "host name" correspond to an IP address or a pair of IP ...
0
votes
0answers
32 views

Are name based virtual hosts for non-web servers?

Does the concept of name based virtual host only apply to web server? Or also to other servers which are not web servers? I ask this because in web servers, named based virtual hosts are implemented ...
1
vote
1answer
38 views

When several name-based virtual hosts on the same web server share the same IP, do they necessarily share the same port?

https://en.wikipedia.org/wiki/Virtual_hosting Name-based virtual hosts use multiple host names for the same IP address. A technical prerequisite needed for name-based virtual hosts is a web ...
0
votes
1answer
24 views

Apache configuration issue (VirtualHosts and redirection)

I have included virtualhost .conf file into my httpd.conf with the following content: root@phpbb3:/usr/local/etc/apache24 # cat ./sites-enabled/000-www.domain.com.conf <VirtualHost *:*> ...
-1
votes
0answers
20 views

Multiple SSL Certificates on one IP [closed]

I currently have a server running on the following fedora 17 apache 2.2.23 openssl 1.0.0k-fips 5 Feb 2013 I am having trouble setting up a second different domain with their own SSL certificate. I ...
0
votes
1answer
23 views

Apache SNI: Is it possible to mix non-secure hosts with secure hosts on the same interface?

On a shared server, we have some sites that only run on port 80. However, there are other sites that run on both port 80 and 443. For example: <VirtualHost *:80> ServerName unsecure.com </...
-1
votes
0answers
13 views

NGINX if directive server-wide instead of site-wide

I recently added the following to my NGINX vhost to counter a DDoS: if ($http_user_agent ~* "stress.website" ) { return 444; } However I would like to apply this to my 100's of vHosts in NGINX. ...
1
vote
0answers
12 views

Unable to make named virtual hosts work on windows-docker-nginx

Windows version: 10 Docker for Windows: 2.0.0.2 (30215) Nginx: latest Docker-compose.yml: version: '3.7' services: nginx: restart: always image: nginx:latest ports: ...
0
votes
0answers
8 views

Unable to access apache2 virtual hosts via domain name over a LAN

I configured two virtual hosts on an apache2 server with the host private IP. i was able to access both these sites (by domain name) by a smartphone through wifi until i configured nextcloud as the ...
0
votes
0answers
9 views

Changes in VirtualHost not taking effect

I've looked at quite a few posts on this site that have helped me with configuring a VirtualHost in apache to reverse proxy incoming host headers to the proper internal web server. Yet, when I ...
0
votes
0answers
9 views

Home link on Drupal site on Apache virtualhost

I have a Drupal site, and I have configured Apache to let me write 'localhost/SITENAME' in the browser when the site is in /Users/USERNAME/Sites My site folder is called practice. I also configured ...
1
vote
0answers
16 views

Apache is caching virtualhost, how to disable caching?

I got the one VirtualHost block in httpd-vhosts.conf working correctly. From an external client, it was correctly forwarding the site name to the proper IP of my backend webserver. <VirtualHost *:*...
1
vote
1answer
23 views

Apache Configuration: how to limit non-hostname request to some pages?

I have a virtualhost configuration of my Apache server: <VirtualHost *:80> DocumentRoot "/app/www" ServerName myhostname <Directory "/app/www"> Options Indexes ...
0
votes
1answer
69 views

What's the difference between a reverse proxy server and a virtual host? [closed]

I'm sorry if this is a dumb question. I'm very new to backend stuff. I'm trying to set up a Rocket Chat server onto a server that I set up a NextCloud and Wikimedia server previously. The rocket ...
-1
votes
1answer
23 views

Multiple domains to single document root

I am currently working on a distributed CMS that is built on a traditional LAMP stack. Customers can access their backend (and front end) using a subdomain of their username, for example: benm.mycms....
0
votes
2answers
80 views

NGINX Uses first ssl server_block it can find as default

So I´ve removed my default vhost config from /etc/nginx/sites-available/, since I don´t need to catch users accessing a non-existent subdomain (Debian 9). Problem: When calling a random subdomain ...
0
votes
1answer
55 views

Point Nginx reverse proxy to virtual host on different VM

I have 1 VM running Nginx to distribute incoming requests for different domains (subdomains)on the same IP to different Virtual machines. my Nginx config file for one example is very basic for now. ...
0
votes
0answers
15 views

.Nginx subfolder to subdomain [duplicate]

Below is the code configuration from NGINX. Well i'm new on this server, so i ask you how can i have subfolders to (virtual host) subdomains. After a lot of search I have found this gists but it does ...
1
vote
0answers
61 views

apache2 - ERR_SSL_PROTOCOL_ERROR

I tried to install letsencrypt on my apache2 server (running on Ubuntu 16.04). It seems to work fine but for some reason i got the following error on my website: ERR_SSL_PROTOCOL_ERROR i cant figure ...
0
votes
0answers
14 views

VirtualHost entry for a ServerName that's a folder directory rather than a complete domain

Is it possible to create a VirtualHost entry for a ServerName that's a folder directory rather than a complete domain? I'm installing Craft 3 and want to run it from my current VirtualHost (rich.dev) ...
0
votes
0answers
19 views

exim4 - replace recipient domain name, virtual domains

I'm tying to setup exim4 as MTA for multidomain host. All users and domains are virtual, stored in the database like that: create table emails ( domain varchar(200), username varchar(200), password ...
0
votes
1answer
46 views

How to point one domain to deep page of another domain with apache or htaccess

I have two domains (a.com and b.com) and a.com is running on my apache server. I want web browsers that try to visit b.com to end up at a.com/?b (transparently, no redirect, and no second virtual ...
0
votes
0answers
28 views

Apache SSL and non SSL sites VirtualHosts not working correctly

Server config: CentOS 7.4 mod_ssl installed Apache 2.4.6 site1.com and site2.de both point to the ip 1.2.3.4. site1.com is non-SSL-driven (temporarily for Let's Encrypt ACME-challenge - will be ...
4
votes
1answer
112 views

bind9 DNS server and virtualhosts apache2: getting to work multiple virtualhost like foo.myenterprise.com

My goal is to host various sites (local virtualhosts) on my apache webserver in the LAN of my enterprise (Debian 9 server). So that: openproject.myenterprise.local => /opt/openproject wiki....
0
votes
2answers
149 views

Apache (2.4) only serves 1st virtual host found on elastic beanstalk server

I have an Elastic Beanstalk server which I am using for my employer's main site, example.com and they want me to host one of their ancillary sites on it: go.example.com. So I just created a new ...
1
vote
0answers
28 views

Dynamic Vhost Config - Apache v2.4 [duplicate]

This configuration was working on Apache version 2.3 however, when I updated to Apache/2.4.34 (Unix) PHP/7.2.11 its not longer working. Only the first and second directives are, but the third isn't, ...
-3
votes
3answers
52 views

setting up virtual hosts on apache

I have a Apache server running under WEBMIN. I have this virtual Server: <VirtualHost pmaconfig.trekfederation.com> DocumentRoot /var/www/phpmyadmin ServerName pmaconfig.trekfederation.com <...
0
votes
1answer
31 views

Can't access phpMyAdmin - I am getting redirected to a vhost

My phpMyAdmin is located at /srv/www/htdocs/phpMyAdmin/. The IP of the webserver is 192.168.40.40 If I try to access phpMyAdmin like this: http://192.168.40.40/phpMyAdmin then I get redirected to a ...
0
votes
0answers
16 views

Limit php to a site's directory in apache

My server has multiple vhosts. I would like to isolate php running in a vhost folder to that vhost's files. Each host has a directory in /www matching its domain name. So if a php script is invoked ...
0
votes
1answer
47 views

Routing requests from internal network to local Apache – a dnsmasq Job?

Hey folks from serverfault, new to this network site. I have a question regarding the configuration of a new server. Ubuntu 16.04 and Apache 2.4 will be running on the server. We would like to allow ...
1
vote
0answers
27 views

Setting DocumentRoot by cookie value

I am trying to serve different content (other DocumentRooot) for requests containing special cookie value. When using nginx it was pretty simple: set $newroot "oi-dev"; if ($cookie_interface = "ni")...
1
vote
0answers
40 views

Can connect to website but not without the “www” part on internal computers

The non-profit I work for has a strange thing going on when accessing the website. Externally, you can access the site with or without www. Internally, you can only access the site with the www prefix....
-1
votes
1answer
30 views

Ressources not loading after setting up virtual host

I managed to setup a virtual host, by using the following configuration: <VirtualHost *:80> ServerName entwicklung.hausfux ServerAdmin black@live.de DocumentRoot /srv/www/vhosts/...
-1
votes
1answer
33 views

openSUSE Linux - Name based virtual host | Apache/2.4.33

I desperately try to setup a name based virtual host for use in my local network, for hours. This is my configuration, the path is correct /etc/apache2/vhosts.d/hausfux.conf <VirtualHost 192.168....
3
votes
1answer
79 views

Apache Local virtualhosts not working (502 error) [closed]

My local dev environment consists of a mac with OSX El Capitan 10.11.6. I have Apache 2.4.28 installed. Something seems to have gone wrong with my virtual host configuration as none of my local ...
-3
votes
1answer
62 views

Configure virtual hosts in vsftpd

I've installed and configured vsftpd on my machine. Everything is working ok, i can access it with my ip address but i have some questions. How can i configure virtual hosts in vsftpd? ex, if i have ...
2
votes
3answers
109 views

What's a good way to hide “wordpress” from a WordPress URL?

I have an Apache2 web site with several different resources all installed directly under the DocumentRoot: http://example.com/mycodeigniterapp http://example.com/wordpress http://example.com/...
0
votes
2answers
18 views

Apache - Adding Wildcard and a subdomain virtual host

I am trying to setup two virtual hosts on my server such that all subdomains should go to Dir1 and one specific subdomain should go to Dir2. Basically, I want to use these two *.domain.com > Dir1 ...
0
votes
1answer
1k views

Configuration change for Apache + PhP-FPM 7.2 necessary?

Until now, I was using Ubuntu 16.04.5 Server with Apache, Nginx as a reverse proxy, PHP 7.0 + FastCGI + FPM, everything updated to last version. Everything went fine. This is one Apache virtualhost, ...
0
votes
0answers
60 views

Django app not running on apache 2.4 with mod_wsgi daemon

I need help in understanding if I have correctly upgraded my website's older config from httpd-2.2 to httpd-2.4. It was hosted on a local server that we have since retired and the entire /etc/httpd ...
1
vote
1answer
68 views

Wrong(first/default) SSL certificate served Apache 2.4 - Ubuntu 18.04 muliple domain web server

Background: We have migrated 2 old webservers to 2 new, more robust servers- Ubuntu 17.04 and 18.04. We purchased Thawte SSL certificates for the domains we host(about 20) to use on 2 servers. Each ...
0
votes
0answers
16 views

How to run Multiple version of PHP concurrently on different Virtual hosts in NGINX

i want to run 2 diff websites on the same NGINX Server. Both using Differ version of php ( php-7 and 5.6 ) and both are intercomuunicting hence requried to up both at the same time. Kindy suggest a ...