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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
1answer
35 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
48 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
20 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
21 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
94 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
18 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
17 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
22 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
20 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
36 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
52 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
19 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 ...
0
votes
0answers
22 views

lets encrypt after editing vhost ssl settings apache does not restart

I was already having apache with varnish cache before, than I have installed Hitch and letsencrypt as here https://docs.varnish-software.com/tutorials/hitch-letsencrypt/ Every thing works fine after ...
-1
votes
1answer
83 views

DNS txt record to point subdomain to other domain

I have a SimpleHosting instance at gandi.net, connected with a domain at Gandi, mygandidomain.org, and another domain, myrootdomain.name registered somewhere else. I successfully added a CNAME entry ...
0
votes
2answers
38 views

Setup virtual host for intranet in apache2 - suse linux

We have a websites (foldername /srv/www/vhosts/wp-intranet hosted on a server in our LAN. We need a Vhost for it so that the website is reachable at "http://192.168.20.25/intranet" and/or "http://...
0
votes
0answers
63 views

Nginx virtual hosts redirection not working

I am having trouble configuring Nginx to redirect to two different web applications on CentOS 7. I have 2 web applications running on Node.js. First app A running on port 1000 has domain www.domainA....
0
votes
1answer
118 views

Apache: resources not loaded after a redirect with proxypass

Configuration: One virtual machine with Docked installed (10.10.10.68) One Docker container for myapp with apache installed (10.10.10.68:8080) A second docker container with superset installed (10....
0
votes
0answers
40 views

Hidden Service in nginx always brings to the site in ClearNet

I have created an Hidden Service, but I am having toubles doing it. As they says the official instructions here, https://www.torproject.org/docs/tor-onion-service I started everything fine and it ...
0
votes
0answers
30 views

Running docker on a different host

I'm working on a docker image for the company web development. I have docker completely configured and running successfully. As I want to create DNS for the containers running on docker, I'd like to ...
0
votes
0answers
96 views

Apache: AH01797: client denied by server configuration

I get this error: [access_compat:error] [...] AH01797: client denied by server configuration: /Users/petruza/Source/local_domain/ vhosts.conf: <VirtualHost *:80> DocumentRoot "/...
1
vote
1answer
38 views

Multiple SSL on 1 domain/cert/ip/port to multiple servers based on source IP port redirect

I have a very specific question that seems like one that has been asked before in the first place, but it's a bit different and not really a common used case I think. Is it possible to run multiple ...
1
vote
0answers
21 views

Apache reverse proxy works for separate subdomain, but not for specific url

I'm attempting to set up Apache to reverse proxy a Tensorboard server so I can view training progress over the web at my website, example.com. I decided to mess with two ways of implementing this: 1) ...
0
votes
1answer
28 views

SaaS Domain Mapping: Cname to subdomain

I read a lot of threads here and I think I'm doing everything perfectly. I setup a cname record on domain.com with the name www and the answer the.subdomain.com However when I go to www.domain.com ...
1
vote
1answer
29 views

How to trust/verify cloud server provider accessing your box?

it is generally admitted that a computer can be considered unsecure when someone else than the designated operator has physical access to it. But since hosted servers are remote, in a datacenter, and ...
1
vote
1answer
30 views

VirtualHost in Apache delivers wrong page for browser (but not for curl)

I try to host different websites on the same Apache server (Apache 2.4 running on Ubuntu 16.04) by using different virtual hosts. However, when trying to open domain-two.tld the server delivers the ...
1
vote
1answer
32 views

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is ...
0
votes
0answers
55 views

nginx as reverse proxy for apache - too many redirects

I have nginx running as a reverse proxy for apache with virtual hosts. Everything works fine, except for when I try to set nginx to serve static content and pass the rest off to apache - I end up ...
0
votes
1answer
13 views

Apache Virtual Hosts points to wrong DocumentRoot

I’m running a VPS (Debian 9) with Apache2 service running on it. I want to have a mail.example.com direct traffic to /var/www/mail and example.com to direct traffic to /var/www/example. I have written ...
1
vote
0answers
68 views

What is the difference between server_name _ and server_name “” in Nginx?

I want to set a default catch-all server block to handle any host names that do not match my exact server_name values. But I'm unsure which one should I use. server { listen 80 default_server; ...
-1
votes
1answer
25 views

Set Mail From Name via Virtual Host for sendmail

I have an issue with a Magento 2 store not setting the from path and from name for some reason. After a few hours of debugging I have decided to work around it temporarily while i figure out the ...
0
votes
0answers
39 views

apache2 segmentation fault on https requests

I am trying to configure an old OpenSuse server with https. The http virtualhost seems to work fine, however when I try to load the https url from my browser I get a: This site can’t be reached ...
0
votes
0answers
52 views

Apache 2.4 too many redirects with www to non-www and http to https

httpd.conf: Include conf.d/ports.conf IncludeOptional sites-enabled/*.conf conf.d/ports.conf Listen 80 Listen 443 sites-enabled/example.com.conf ServerName example.com <VirtualHost *:80> ...
0
votes
1answer
51 views

CNAME pointing but not getting final content

I am by no means a pro in terms of networking and DNS stuff, but I know my share of stuff. I am attempting to do the following. A customer's hosting doesn't have enough space and permissions to host ...
0
votes
1answer
24 views

httpd redirect to main apache test page

I have a task to configure site-config like: 1) * must be redirected to backend 2) /test must show main apache page I've tried some cases: <VirtualHost *:*> <Proxy balancer://mycluster&...
1
vote
1answer
82 views

Run Redmine and Gitlab on unique apache server

I work on a project where im supposed to run simultaneously GitLab and Redmine on the same virtual machine using apache2. I started to install omnibus-GitLab (documented here https://about.gitlab.com/...
0
votes
0answers
22 views

Docker host apache https to http safety

I have a Docker host that runs Apache and proxies requests to a Docker container. My vhost looks something like this (simplified): <VirtualHost *:443> ServerName www.example.com ProxyPass / ...
0
votes
1answer
89 views

Apache2 (Ubuntu 16.04) subdomain shows main website instead of subdomain website

default.conf <VirtualHost *:80> DocumentRoot /var/www/example ServerName example.com DirectoryIndex index.php index.html </VirtualHost> <VirtualHost *:80> ...
0
votes
1answer
73 views

Apache config rewrite: “Unable to execute .. No such file or directory”

I've been moving some rewrites from .htaccess to our vhost_ssl.conf file. Most are working fine, except ones that utilize our ecommerce platform. We use Miva Merchant as our ecommerce platform, which ...
0
votes
0answers
67 views

Can't handle PHP sessions in more than 1 apache virtual host

I have 2 cloned instances in AWS with Ubuntu 16, Apache 2.4 and PHP 5.6. I configured each with 2 virtual hosts (plus the default) with the same configuration (different names obviously): Define ...
0
votes
1answer
27 views

My virtual hosts file for my subdomain is not being picked up

So I have a website running on a lamp stack on Ubuntu. I have two vhosts files... 000-default.conf: <VirtualHost *:80> ServerName www.example.co.uk ServerAdmin admin@example.co.uk ...
0
votes
0answers
61 views

Virtual Hosting: Backend WebLogic Server IP Address is in the browser URL

I am configuring virtual hosting on Apache 2.4 web server, and the back end is weblogic8.1 server. The weblogic server (private IP: 192.168.103.101) has three applications running, each one is ...
1
vote
1answer
123 views

apache2 how to run multiple hosts listening on port 80 on the same server

here the scenario: I have example.com <VirtualHost *:80> Redirect Permanent "/" "https://example.com" </VirtualHost> the above works perfectly(it redirects to the configuration ...
0
votes
0answers
102 views

Serving static content with node behind Apache ReverseProxy

I have a node server behind an Apache ReverseProxy (for requests on path /examplepath), and all of my web app is serving correctly except for the static content. Apparently, node doesn't know its real ...
0
votes
1answer
23 views

nginx vhost site priority

I heed some help figuring out why my nginx is prioritising the site this way. I have server blocks in my vhost: server { #site 1 listen 80; server_name site1.testing.domain.com$; root /...
0
votes
0answers
90 views

core_output_filter: flushing because of FLUSH bucket - why am I seeing this in Apache error log?

Does anyone know why do I keep seeing core_output_filter: flushing because of FLUSH bucket in my Apache 2.4.7 (Ubuntu) error log and what does it mean? I haven't noticed any problems so far, but it ...
0
votes
1answer
45 views

serving wrong serverName

A conf file of httpd-vhosts.conf: <VirtualHost *:80> DocumentRoot "C:\Apache24\htdocs\lsapp\public" ServerName lsapp.test </VirtualHost> <VirtualHost *:80> DocumentRoot "...
0
votes
1answer
19 views

Apache - How to map a domain to specific path of another domain on the same host?

I have a Wordpress website having a domain for example: example.com and there're a few pages like example.com/shop , example.com/products/sample-product which I want to be viewed via ...
1
vote
2answers
78 views

Cannot enable site on apache

I am trying to add virtual host for a site but cannot enable it. I have added the configuration file(.conf) in site-available folder. when I try to enable it by running a2ensite <site.net>....
0
votes
1answer
20 views

2 ProxyPass SSL wildcard on HTTPD2

So basically I am trying to setup 3 different SSL virtualhosts. I have the following setup beta.website.com api-beta.website.com app-beta.website.com beta is our old platform, api and app our part ...
-1
votes
2answers
35 views

Virtualhost does not work on Fedora with 403

I have created a project under my home directory. Then, I created a virtual host in a new httpd conf file (I named it z-httpd.conf) I created under /etc/httpd/conf.d. The problem is that I cannot ...