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.

-1
votes
1answer
20 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
23 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
39 views

Apache Local virtualhosts not working (502 error) [on hold]

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
11 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
32 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....
-1
votes
0answers
22 views

Painfully slow connection for only one virtualhost on my server

I have a client who has an extremely slow website on his GoDaddy account. I moved the site to my server, thinking it was his hosting plan. The site is ridiculously slow on my server, too. I thought ...
0
votes
0answers
16 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
21 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
88 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
13 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
34 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
37 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
15 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
14 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
0answers
16 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
9 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
20 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
37 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
183 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
18 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
70 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
34 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
29 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
33 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
14 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
27 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
49 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
43 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 ...
0
votes
0answers
24 views

Subdomain always redirects to main domain

I have redirected my domain to my server, and successfully configure the main domain like this: /etc/apache2/sites-available/mywordpress.com.conf <VirtualHost *:80> ServerName www....
0
votes
0answers
27 views

Virtualhost with two dashes

I am facing a problem with defining virtual host, if I define host like this <VirtualHost *:443> ServerName some-site-name.example.com DocumentRoot /data/web </VirtualHost> It ...
1
vote
1answer
40 views

What will happen if I include vhost config file directly in “sites-enabled” folder?

I am currently studying Apache virtual hosts and have some confusion regarding their configuration. I have created a virtual host file in the sites-available folder and enabled the corresponding ...
0
votes
1answer
21 views

How to delete all information belonging to an ejabberd vhost?

Deactivating an ejabberd vhost is easy. In the simplest case, just remove the entry from the hosts section in /etc/ejabberd/ejabberd.yml. I presume this does not delete any information about the ...
0
votes
1answer
26 views

Wrong directory on virtualhost [duplicate]

I'm trying to have 3 different domains on my VPS, those are pd.lsgob.us intranet.lsgob.us lsgob.us I have configured them but for some reason I'm getting redirected to the same index.html that the ...
0
votes
1answer
12 views

In Apache/local, how can I support both directory access and named-host access?

I understand how to use Directory and (I think) VirtualHost directives. I further understand that I can't mix them (although I can nest them). When I mix them I get 404 not found for the Directory-...
0
votes
2answers
43 views

Apache 2.4.6 Virtual Host ServerAlias directive not matching alias in all cases

Apache 2.4.6 is hosting four domains using name based Virtual Hosts. Calls to port 80 for http are redirected to port 443. Each virtual server has two ServerAlias args for the directive to redirect ...
0
votes
1answer
131 views

502 Bad Gateway on localhost Apache

I'm trying to run a Drupal 7 multi-site install on my Mac (10.12.6). My directory setup: ~/Sites/index.html ~/Sites/drupal/docroot/sites/site1 ~/Sites/drupal/docroot/sites/site2 My /etc/hosts: 127....
0
votes
2answers
67 views

How to setup an API, a webapp, a gitlab, and a showcase website on the same server?

I am coming today because, as a developer, I feel like I must know how to configure such things, however, I am getting stuck and I am not sure to understand why. I have 4 stuff let's say: An API (...
0
votes
1answer
24 views

redirect www.subdomain.domain.com to subdomain.domain.com

We currently have a domain that have a wildcard ssl so our site is something like this, www.ourdomain.com ourdomain.com subdomainA.ourdomain.com subdomainB.ourdomain.com and so on. What i want to ...
1
vote
1answer
31 views

mod_proxy for apache/redhat not working

We have the following scenario: First APP: http://example.com:8090/access/app1 Second APP: http://example.com:8090/access/app2 We want to configure apache mod_proxy to assign: http://app1.example....
0
votes
2answers
145 views

How to configure <Location> Directive specific to a Location/Directory on Apache Server and not on Server Level?

I am new to Apache Server Configuration. I went through the Apache Documentation and tried to understand the Basics as well as the Directives. But still, I am not able to figure out a configuration ...
0
votes
0answers
52 views

Apache test page, instead of Django app showing up after server is started

I have an app on EC2 that I start up by ssh'ing into the VM, activating the env and then running manage.py runserver. The Django app starts without any errors on 127.0.0.1:8000. The server files ...
0
votes
0answers
19 views

In Apache, how to add a site url with IP/folder?

Good day. I have an Apache webserver with 5 websites. I wanna add a 6th, but so far I don't have a domain since the client can't decide which one yet. I want to access it as 54.142.66.23/website, ...
0
votes
0answers
24 views

Connect to vpn with VM as middleman

I am assuming it is possible to connect to a virtual machine as a VPN service from my host machine, but I would assume like any other vpn service I would need to go through my router with some rule to ...
0
votes
1answer
21 views

Unable to hit subdomain on VM: Ubuntu Server

I was sent here from stack overflow - sorry if this is the wrong forum. I'm trying to set up a local dev environment which simulates multiple servers. I'm just trying to learn more about this and this ...
0
votes
1answer
97 views

Apache 2.4 using default DocumentRoot instead of VirtualHost DocumentRoot

Long time listener, first time caller... I've been running Apache for years, and have set up multiple servers. This one is giving me a hard time and I just can't spot the issue. I've seen a number ...
1
vote
1answer
231 views

Apache error on SuSE : Invalid command RewriteEngine, perhaps misspelled

Webserver: Apache 2.4 on SuSE 12, multiple vhosts 4 vhosts (2 ssl, 2 http) have RewriteEngine on and some simple rewrite rules. mod_rewrite is available and active (checked with a2enmod -l) Problem:...
0
votes
0answers
21 views

Upuntu 16.04 + Let's Encrypt verifiying that new domain works, before chaning it in cms?

This is probably more of a webmaster question than it is related to server administration, but given that I struggled quite a bit to get the new domain running via virtual host, I figured I'll ask ...