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)

0
votes
1answer
86 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
12 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
13 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
28 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
98 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
58 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
53 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
20 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
37 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
34 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
39 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
86 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
58 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
41 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
10 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
26 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
122 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
39 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
73 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
91 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
53 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
37 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
112 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
30 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
62 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 ...
1
vote
0answers
48 views

Drupal multi-site, virtual hosts and CloudFlare

I'm hoping that someone with some experience with CloudFlare can lend me some guidance. Background Drupal multi-site hosting 200+ sites, launching new sites on a regular basis. Single IP for all ...
0
votes
2answers
809 views

Apache 2.4 & Ubuntu 14.04 error on Vagrant: “You don't have permission to access / on this server.”

I realize there are a lot of similar questions on here, but I've been struggling with this for hours and have been unable to find a solution. When I try visiting my Vagrant Ubuntu box via the host ...
2
votes
1answer
92 views

Multiple ports on Apache2

I have an apache2 server on Ubuntu 14.04 with 2 sites on different ports: site1.domain.com -> Port 80 site2.domain.com -> Port 8888 http://site1.domain.com -> OK http://site2.domain.com:8888 -> ...
0
votes
1answer
165 views

Apache 2.4 virtualhost_alias with php5-fpm and proxy_fcgi

After moving my server from mod_php to mod_fastcgi and php5-fpm, I've found that everything works, except my wildcard virtualhost. My wildcard virtualhost works as such: *.dev.myserver.com ...
0
votes
3answers
75 views

Can't get right default virtual host working

I'm configuring an apache server to support a few virtual hosts with different subdomains. Situation: Right now, there are 4 subdomains pointing to same IP: srv.example.com svn.example.com ...
2
votes
1answer
26 views

Can Apache Access Logs be kept separated & also combined as well too?

My question may be a bit confusing, and sorry for that. Here is what i need: Well, i have (let's say) 3 Websites hosted on one Apache (which are defined inside each VirtualHost settings. Then i ...
0
votes
0answers
58 views

How to set up a lighttpd modular config for several vhosts

I have a question regarding lighttpd best practices for vhosts setups. I wanted to set up a modular config for several vhosts with splitted config files to be able to enable/disable specific vhosts ...
0
votes
1answer
30 views

DirectoryIndex in Subfolder/New project with virtualhosts and SSL, same domain

I have som problems with setting up a new project in apache. I have an old project in sub.domain.com/api/something.php, but am trying to add a new project (symfony) that requires a DirectoryIndex, ...
0
votes
1answer
81 views

PHP exceptions cause nginx to leak virtualhosts into each-other

I have multiple nginx virtualhosts set up on my server. tershronalds.com is running vanilla wordpress 4.3, and staging.ninjawars.net is running a custom php codebase. Both are relying on php5-fpm. ...
0
votes
1answer
38 views

Apache 2.4 SSL VirtualHosts and no default landing page

I am setting up multiple subdomains/domains with different ssl certificates on one server and I have a problem. Namely, VirtualHost *:443 is being ignored and first VirtualHost is being loaded. My ...
1
vote
2answers
66 views

Apache 2.4 Convert .htaccess rewrites to vhost.conf

I have a .htaccess rewrite that I would like to move to a vhost.conf (I don't want to use .htaccess) RewriteRule ^(.*?)(test_mod_rewrite) /$1media/plg_jchoptimize/assets/modrewrite.php?q=$2 ...
0
votes
1answer
121 views

How to disable varnish on apache2 with ubuntu?

I installed and setted up varnish using this guide Basically, I changed the port to 8080, I want to disable varnish, so I thought I will change back to port 80 and thats it, varnish it's listening ...
0
votes
1answer
98 views

Apache Virtual Hosts Override httpd.conf

I'm confused as to how vhosts in Apache 2.4 work. I have enabled virtual hosts, and I have two websites set up on my server. I think that this means the default host (/var/www/html) doesn't work ...
0
votes
1answer
24 views

Map URL with folder on Tomcat

I have a Java webservice running on Tomcat (/opt/tomcat8/webapps/mysvr) that is accessed through url http://mysvr.example.com. It works fine with the following configuration on ...
-1
votes
1answer
65 views

How to mask one of my domains to another? [duplicate]

I want one of my domains (freelawofattractioncourse.com) to point to another site of mine (http://katievb.com/freecourse) without causing the URL to change in the address bar. In other words, when a ...
0
votes
1answer
30 views

Automatic vhost folders in apache 2.2

I've currently got the following in my vhost config which is working, however I'd like to modify it. Currently my vhost config looks like <VirtualHost *:8080> ServerName dev ...
-1
votes
1answer
48 views

Public port 80 targeting private port 3000 on Azure Linux

I have a Ruby on Rails website on Azure Linux (Ubuntu 14.04) that works perfectly from this address: http://mydomain.cloudapp.net:3000 I want to get rid of the port in the address, and redirect it ...
0
votes
1answer
72 views

Define virtual hosts on Azure Linux

I am using Azure Linux (Ubuntu 14.04) and I need to define two VirtualHost as per below. However, I cannot see any httpd folders. Where can I do it? <VirtualHost app1.example.com:80> ...
2
votes
1answer
312 views

Domain redirects to wrong site in nginx, multiple sites in config files

I have 2 websites setup on nginx, and the correct one should load depending on which domain is accessed. For example: website1.com website2.com However, when accessing either of these domains, they ...
0
votes
1answer
17 views

Virtualhost Document Root changing web root for entire server

I currently have example.com pointing to Server one. I wanted to server example.com from a different directory ( /WebData ) I did this by editing httpd.conf http://pastebin.com/UjHhRNTX I this ...
1
vote
2answers
310 views

encode URL wihthin URL - apache mod-proxy (ProxyPass)

I have a ProxyPass configured to reach the following: On my server I start a service which provides a Rest-API listening on port 7777. From the client side, I want to be able to call this API like ...
2
votes
1answer
171 views

Postfix - sender dependent relaying for multiple domains

I have spent the last couple of days going through SO questions and the Postfix documentation but have not succeeded in figuring out what I'm doing wrong. My situation is as follows: I have a server ...
2
votes
1answer
88 views

Virtualhosts names not working on apache on Yosemite 10.10.4

I'm dropping MAMP in favor of native Yosemite apache. I have troubles defining and accessing my vhosts, they seems to be unreachable. I've followed this gist: ...
0
votes
0answers
72 views

Multiple Domains on Apache windows

[From stackoverflow] so I have my website [www.example.net] and [www.example.com] I'm running windows, and I installed it myself, without xampp or whatever. I also installed php alongside. My domain ...