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.

learn more… | top users | synonyms (5)

1
vote
1answer
110 views

nginx virtual hosts not working after enabling IPv6

I've just enabled IPv6 on my nginx 1.8.0 webserver based on Debian Jessie. To do this I've edited my Virtual Host-Config: server { listen 80; listen [2001:1608:10:160:34::2]:80; ...
8
votes
3answers
210 views

Webserver randomly serves different vhosts

We've got nginx running on Ubuntu Trusty. It serves several websites over https, running on one ip address. Randomly, although it seems slightly related to work load, sometimes single requests turn ...
0
votes
0answers
38 views

How to set up php fpm work with apache virtual hosts

When I use default config without vhosts everything works fine. But when I add virtual hosts It not working.. Here is how vhost look like: <VirtualHost *:80> ServerName example ...
3
votes
1answer
303 views

Nginx status information of virtual hosts

I want to monitor each nginx virtual hosts(I have multiple nginx config for different domain) and found nginx module ngx_http_stub_status_module But seems this module is for displaying server wide ...
1
vote
0answers
20 views

Apache Quantum Uncertainty Principle… If directive both true and false

The value of the environment variable is set in bash: # export PRODUCTION=true # echo $PRODUCTION # true Here is the relevant excerpt from my virtual host file: <If "-T osenv('PRODUCTION')"> ...
-1
votes
1answer
34 views

VirtualHost Apache does not serve subdomain [closed]

I have setup an apache that serves my site in port 80 and 8080 fine. But now I want to move the VirtualHost on 8080 to port 80 in a subdomain. Here is my sites-available configuration file: ...
0
votes
0answers
37 views

Redirect from within vhost for multiple sites

Note: My question is similar to one here but I'm trying to achieve something slightly different. A. I would like to create two vhosts on a ec2 instance that has a elastic ip attached. B. Each of ...
0
votes
0answers
90 views

Nginx - add a subdomain to a running webserver using the same SSL cert

I am running a web server on a Lemp installation. My website is "protected" by CloudFlare, using SSL-full (differences between SSL setups on CloudFlare), hence i have a self-signed certificate which ...
2
votes
1answer
137 views

Secure Webmin with Apache VirtualHost

I'm trying to setup my webmin instance to the address https://webmin.example.com but I'm getting an internal server error (500). Any ideas why? Here's my Apache config: <VirtualHost *:443> ...
1
vote
2answers
928 views

ReverseProxy not working on OSX El Capitan

I am attempting to access my plex web ui through a cleaner url. Currently, you can access it at http://marvin.boldlygoingnowhere.org:32400/web/index.html. I want it to be at ...
0
votes
0answers
59 views

How can I load and unload tomcat virtual hosts without restarting it?

I'm running a large number of virtual hosts on my tomcat server and I need to add or remove some virtual hosts repeatedly (by changing server.xml) and everytime I have to restart whole tomcat to ...
0
votes
1answer
48 views

Which domain-name was requested? Running virtual hosts on Mongoose web server

I'm currently running Mongoose WebServer 5.5 on Windows 7 I have a number of virtual hosts, running on a single Mongoose server on one IP node. The access log entries are typically 157.55.39.146 - ...
2
votes
0answers
20 views

Virtual Host Alow Encoded Slashesh

I'm trying to allow encoded slashes on my local pc. But i dont know how to configure virtual host. This is my config Apache Version : 2.4.9 (Win64) PHP Version : 5.5.12 I tried this but ...
0
votes
1answer
44 views

VirtualHost https and non-www

I'm attempting to redirect all requests to my main site to https://example.com with VirtualHost. I want to remove the www from the domain and force https. Currently all http:// requests are ...
4
votes
1answer
89 views

Is there a command to get Apache to display its running config from memory?

Is there any way to get the Apache web server to display it's current running config, from memory, i.e. not by parsing the files in the config directories? I've just managed to accidentally ...
1
vote
0answers
172 views

Debian 8 (Jessie) PHP not working on Apache Virtual Sites [closed]

After a considerable amount of research and now a fresh install of Debian 8, I have given up and I am hoping the wonderful community at server fault can help me out of my madness. They kicked me out ...
0
votes
2answers
170 views

Virtual hosts not working in Fedora 22 [closed]

Recently I've switched from Ubuntu to Fedora Workstation as my development enviroment to better understand centOS servers (and for other reasons too). I've been trying to set up a local LAMP stack ...
0
votes
1answer
26 views

apache - Is hosting same website on different ports possible?

Someone asked me to install an SSL certificate for a website. I installed it and enabled HTTPS but he got pissed that HTTP requests get redirected to HTTPS instead. I don't think redirection would ...
0
votes
1answer
30 views

Setting DNS records and virtualhost

My website currently lives on beta.tpe-edu.com I want to make it accessible directly on tpe-edu.com (to point to the same location), but can't make it work (ERR_NAME_RESOLUTION_FAILED). Domain is ...
0
votes
0answers
20 views

Added 2nd virtual host for CNAME on HOST, http://CNAME becomes http://HOST/%25N

I inherited a kubuntu web server at work, and am having issues adding a second virtual host. I've added a CNAME record to point to HOST, and wanted to serve pages for the CNAME from a different ...
0
votes
1answer
59 views

Serve data from different locations depending on a query parameter

I would like to serve data on one and the same host from different directories depending on a query parameter using Nginx. For example https://foo.bar/index.html should be served from /var/www/foo ...
0
votes
0answers
37 views

Apache server directive status directive for BalancerMember - need to understand the meaning

I have this defined in my reverse proxy Apache configuration, in a virtual host config: BalancerMember http://php2-mindaugasb.c9.io:80 status=-SE retry=60 Trying to understand the status=-SE ...
0
votes
1answer
90 views

Start Apache despite error in Virtual Host's SSL certificate file

I have Apache 2.4.10 with name based SSL (SNI) virtual hosting. Virtual users can use their own certificate and upload it to server. Everything works fine until there is some error with certificate ...
0
votes
1answer
53 views

Virtual Host for SSL does not point to the specified folder

I am using Ubuntu 14.04 Apache Apache/2.4.7 I created a SSL Virtual host and provided the required key and cert files but the location it refers to is /var/www/ instead of the provided folder ...
0
votes
1answer
104 views

Apache 2.4 on Debian issue - “Forbidden” after upgrading virtual host

I have tried many suggestions I can find via Google to make my virtual host work properly after upgrading from Debian to Jessie (upgrade from Apach 2.2 to 2.4). I have mod_rewrite and ...
0
votes
0answers
13 views

Nginx location not working [duplicate]

I am new to configuring Nginx servers and I've been bashing my head against a wall for a few days now. I know it's been asked a lot and even though I've read all the answers, the Nginx documentation ...
0
votes
2answers
14 views

Apache Virtual Hosts Both Going to Same Location

So I just purchased a second domain that I want to serve on the same Apache server as my main domain. However after updating the virtual hosts, both domains are still going to the first entry. Both ...
1
vote
1answer
30 views

Apache2 Virtual Host 1 file for any URL

I have an Apache2 Virtual host set up to pick up access from any URL (dns) other than the ones I have set up. Basically I want any access to this to show a page (index.html) but keep the URL the user ...
0
votes
1answer
143 views

Apache client denied by server configuration and wrong log

I'm trying to configure a new virtual host with apache 2.4.16 Premise: I already have other virtual hosts and they work fine, so what I've done is simply duplicate the vhost and change paths and ...
1
vote
3answers
151 views

Apache proxy all ws connections to different port

In my Apache 2.4 vhost I'm trying to get all https:// traffic to carry on to port 443, but all ws:// traffic to forward onto ws://*:6969. Eg: https://example.com/index would just go to ...
1
vote
1answer
111 views

How to internal redirect from one virtualhost to another Apache [duplicate]

I'm upgrading my application to new PHP version. For that I created two virtualhosts one server PHP 5.3 application and another with PHP 5.6. My virtualhosts are like, <VirtualHost *:80> ...
1
vote
0answers
24 views

Setting Apache timeouts only half working

I have an EC2 instance running django and a page requires a post request which lasts for about a minute and a half. This initially timed out at 60 seconds, however tinkering with the httpd.conf ...
1
vote
1answer
40 views

Change php settings based on sub-domain in vHost

I have a VirtualHost which direct many subdomains to the same directory. moscow.myapp.com paris.myapp.com All those websites run on the same application. The only thing I need to change from a ...
1
vote
0answers
46 views

How redirect in WAMP url ww.xyz.com to ww.abc.com/some-page?

I am working in site www.example1.com which is hosted in WAMP server, there is another site which is www.example2.com,when a user type www.example2.com in his browser,it should be redirected to ...
2
votes
2answers
41 views

Get virtual host config without config file

I've accidentially deleted a virtual hosts file 010-foo.conf. The Apache2.4 is still running without reload or restart so far. Is there a way to see actual config of the file which isn't there any ...
-3
votes
1answer
91 views

Bare metal virtual machine hosting both Windows and Linux

If you have both Windows and Linux on the same VM, will data move between these two OS more efficiently than if they were on two separate VM connected by a single switch? I currently have a Windows ...
0
votes
2answers
77 views

How to serve robots.txt for all my own subdomains but not other hosts on Apache?

We develop websites and we host the QA environment on the same server as the production environment. I want to serve a specific robots.txt for all QA sites but not for the production sites. We have a ...
1
vote
1answer
42 views

Apache returns same site from two domains

I'm having an issue with apache that I just can't seem to fix. I have two domains which point to two different DocumentRoot's in the Virtual Host file. However, I can't get that to work properly, the ...
0
votes
0answers
11 views

rouncube to a third level site

I tried to apply this answer to my question but I have realized that I must be missing something important because actually I don't get the expected answer from the server (should be roundcube login ...
0
votes
1answer
27 views

apache2: VirtualHost configuration for application and repository

I use apache2 2.2 on CentOs 2.6. I need to configure my apache2 to allow me to use my wildfly application and source code repository. For my application I use address: domain.com and it will redirect ...
0
votes
1answer
187 views

Redirect all subdomains to main domain inside vhost

I simply want to redirect all subdomains that are not not already mentioned in a vhost's ServerName to redirect to the empty sub domain. I tried to add this to my httpd.conf after all other virtual ...
1
vote
2answers
56 views

How can I set catch-all virtual host in Apache? [closed]

I'm using a dedicated IP address for my website and recently I noticed that some people are pointing their domains to my IP address . I need to set up catch-all virtual host to tell Apache that only ...
-2
votes
2answers
74 views

apache virtual host config

hi im trying to ensure that my website is only accessed via https, and only through the www sub domain, im currently using the following apache virtual host config: <VirtualHost *:80> ...
1
vote
2answers
124 views

How to tune Apache to show only one host on HTTPS protocol

I have a Web server Apache on FreeBSD and want to bind SSL only to one of many domains. Now my configuration is NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /home/web/web/domain01.com ...
0
votes
0answers
12 views

GlobalNamingResources not working with Virtual Host

I recently set up Apache mod_proxy and some Virtual Hosts on my system to be able to use a subdomain for my webapp. Everything was working fine. Now i tried to manage database access via ...
0
votes
1answer
96 views

VirtualHost/htacess : how to point a subdomain to an url parameter?

I must to create a multi-languages website. In order to achieve this aim, I want to point subdomain representing a language to the 1rst url parameter (GET variable) of the domain in my virtualhost ...
1
vote
1answer
51 views

Defined url in virtual host not working on remote server on windows azure

I created a virtual host for http://staging.layzer.tunde.com and the url is not pointing to the page directory but if I enter the file path as in http://ip/staging.layzer.tunde.com I can view the ...
0
votes
1answer
166 views

Apache VHosts configuration ERR_CONNECTION_TIMED_OUT

The problem My Apache/2.2.15 doesn´t serve websites I want to acces via subdomains. When hitting an URL, e.g. domain.tld or subdomain.domain.tld an error occurs ERR_CONNECTION_TIMED_OUT. My file ...
0
votes
2answers
34 views

Apache proxy wrong browser url

I am using the following VirtualHost and mod_proxy to proxy all requests for my 'api' subdomain to my Java webservice which is located at webapps/webservice on my Tomcat. <VirtualHost *:80> ...
3
votes
1answer
70 views

A record or cname

I have a server (Ubuntu + Apache) where we host an app where clients can create their own subdomains - i.e. basically wildcard subdomains. We have a client that wants to point their own domain ...