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
23 views

NGINX uses default vhost for subdomain

Okay, so I´ve setup multiple subdomains via NGINX vhosts. These subdomains are linked with following vhost configs (in sites-availible): - www.example.com (server_name declared for www.example.com ...
1
vote
0answers
24 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
13 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
3 views

apache virtualhost with other server documentroot [duplicate]

i have main server with virtualhost my apache configuration is <VirtualHost *:80> ServerName mainweb.example.com ServerAlias www.mainweb.example.com RewriteEngine on ProxyRequests Off <...
0
votes
0answers
9 views

Multiple VHosts on one domain using URL Path

I am launching a large new site in Symfony 4, which is to go live in halves... call it side A and side B. The existing site, which is in Symfony 2.7, also has the the same split, side A and side B. ...
0
votes
0answers
50 views

new vhost redirect to other vhost (rspamd)

actually setup a new apache vhost for a second domain on my debian vps. Every time i browse the new domain, it redirect to my rspamd vhost. My first domain working fine, the rspamd redirect working ...
0
votes
0answers
17 views

Second Django vHost not working

I'm trying to setup two vHosts on my server for a week now and just can't figure it out. There are my two separate Django projects (stored in one of the users directories) on my Ubuntu 18.04 server ...
0
votes
0answers
11 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
32 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
23 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
51 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
131 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
45 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
21 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
58 views

Debian 9 / Apache 2.4 - Restricting access to some files in a Virtual Host subdomain unless the originating IP is on the local network

I've a problem that has been costing me hours of time, it's probably something simple but my knowledge of Apache is a bit limited it would appear. I'm starting to feel like I'm down a rabbit hole so ...
0
votes
0answers
13 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
37 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
26 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
39 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
24 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
27 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
68 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 ...
0
votes
0answers
31 views

Configure multiple Symfony 4 apps under Apache 2

I'm trying to configure two Symfony 4 apps under Apache 2 on Linux. I made a virtualhost configuration file for each app in /etc/apache2/sites-available/ When I enable only one of this configuration, ...
0
votes
0answers
15 views

Redirect a sub sub domaine to HTTPS Ask

I have a web site with this URL : A.B.domain.com. I bought a ssl certificate to secure it. Then, I've updated my .conf file to redirect all the HTTP traffic to HTTPS. I did this for one web site. ...
0
votes
0answers
92 views

error (EAI 2)Name or service not known: AH00547: Could not resolve host name

overnight all our virtual sites stopped working displaying all the same error as follows.Appears it occurred straight after apache restart. Note this was at 3:36 in the morning Sun Oct 14 03:36:26....
0
votes
0answers
27 views

Using Apache HTTPD mod_proxy_balancer for many vhosts

I have an Apache httpd 2.4.34 configuration with many vhosts (~4000) mostly used for redirecting and SSL-offloading using mod_proxy to access the backend. Now I want to switch to mod_proxy_balancer ...
-3
votes
1answer
39 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 ...
0
votes
3answers
100 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
17 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
0answers
97 views

Upgraded httpd 2.2 to 2.4, server generated directory index forbidden by options directive

I keep getting the 500 internal error when going to my website's IP address. I haven't set up a domain name for it yet. Upon checking for error's on the apache error log at /var/log/httpd/error_log I ...
0
votes
1answer
263 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
16 views

Issue redirecting from http to https in apache vhost

I am setting up a Drupal site running in apache (Amazon Linux, which I believe is based on Red Hat) and trying to redirect http to https via the vhost config, but it is not working. I realize I can ...
0
votes
0answers
30 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
32 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
11 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 ...
0
votes
0answers
25 views

Apache ssl redirect with virtualhost hot working

I've set up my Apache server with a reverse proxy to forward requests onto my backend Node.js server (port 8080 for http and 4430 for https). The below works fine if someone comes in on http://...
1
vote
1answer
167 views

Apache: No matching DirectoryIndex

I'm newbie in apache, i have the following directory structure: html |-- moodle |-- singapur |-- app |-- public |-- js |-- css |-- img |...
0
votes
0answers
726 views

Apache 2.4 updated, now throws: Cannot define multiple Listeners on the same IP:port

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following: Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/...
0
votes
1answer
25 views

Apache doesn't listen on all ports configured with virtual host and reverse proxy

I have a host (Ubuntu 16.04) and a virtual machine on it. I want to use apache to forward different ports to the VM with the reverse proxy modul. The problem is, that apache doesn't listen on all ...
0
votes
1answer
71 views

Apache virtualhost doesn't apply

I am setting up a virtualhost that requires a password for a directory. I checked and the following entry works locally, but not on the server (Ubuntu). Do you have any tips what difference could be ...
1
vote
1answer
37 views

Can Apache be configured with a virtual host that doesn't respond at all?

Scenario: example.com, a.example.com, and b.example.com all resolve to the IP 1.2.3.4. Apache 2.4.29 on Ubuntu 18.04.1 is configured with several virtualhosts (possibly on non-standard ports); ...
0
votes
0answers
30 views

www redirection sends to the wrong vhost

I've got a VPS setup with apache and a few websites on it. DNS wise, I've got it like so: mainsite.com. -> A -> 1.1.1.1 www.mainsite.com. -> CNAME -> mainsite.com. secondsite.com. -> ...
0
votes
0answers
16 views

How to set ServerName in VirtualHost if i have only IP addres?

I use ubuntu server for setup laravel project. when i setup VirtualHost there is attribute call ServerName . Thing is i have only IP address. Do i need to add IP address as ...
1
vote
1answer
19 views

Apache: why always showing files from the same virtual host?

I have set up 2 virtual hosts, sharing the same IP address: <VirtualHost *> DocumentRoot "/var/www/vhosts/website1.com/httpdocs" ServerName www.website1.com </VirtualHost> ...
0
votes
1answer
35 views

Redirect a subdomain to a different login page

I have a domain with a subdomain set up like the following in my vhost.conf file. <VirtualHost *:80> ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /opt/mysite/...
0
votes
1answer
15 views

Multiple Apache vhost pointing to same directory

I have different domains, and related multiple Apache vhosts, pointing to the same directory. So, basically, the different domains (mydomain.com , mydomain.de , mydomain.fr ) share the same site and ...
-1
votes
1answer
30 views

You don't have permission to access when to set two name-based web sites on a single IP address in apache [duplicate]

Apache was installed on my debian,i want to bind two domain name with different directroy. cat /etc/hosts 127.0.0.1 hwy.local www.hwy.local test.app www.test.app Two domain name all binded ...
-1
votes
3answers
85 views

Apache Virtual Host redirect from https subdomain to subdirectory

How do I redirect requests coming to https://blog.example.com to https://example.com/blog? Reading the apache docs on when not to use the rewrite mod, I tried a simple redirect e.g. Redirect https://...
0
votes
2answers
46 views

Is there any performance benefit to Bond Virtual Adapters?

I am using XenServer and wondering if there are any performance benefits to bonding two "virtual" network adapters on a virtual machine? I am certain it would benefit a bare metal server (make one ...