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 (3)

0
votes
1answer
16 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
8 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
28 views

How to mask one of my domains to another?

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 ...
-1
votes
1answer
20 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
20 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
61 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
12 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
44 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
53 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
19 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
45 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 ...
0
votes
1answer
30 views

Apache 2.2 to Tomcat Virtual Host from differnt machines not working

I have a scenario where all the requests to the Tomcat Server (Application Server) should go through the Apache 2.2 (Web server). Both the servers are on 2 different machines. The 2 machines are not ...
1
vote
2answers
20 views

Staging site redirects to live site [closed]

I'm creating a staging site following this tutorial: http://www.redbridgenet.com/how-to-create-a-magento-staging-site/ I have followed the steps listed except for setting up the virtual host in ...
0
votes
0answers
22 views

access local network shared folder from the internet

I have a problem with my network configuration. I would like to access a folder that is in my local network and mount it on a public server. I have a VSERVER in local network (10.50.1.25) I have two ...
0
votes
0answers
19 views

Cisco ASA SYN timeout due to SSL errors?

One of our clients is attempting to connect to our AWS hosted websites through their websense proxy and ASA firewall (some use Palo Alto firewall instead). While we and others can access the sites ...
0
votes
1answer
14 views

Virtual Host for SimpleSAMLPHP

I want to install SimpleSAMLPHP on my apache2, I don't have a lot of experience on server config and need to ask if this is correct for virtual host setup: <VirtualHost *:80> ServerName ...
0
votes
0answers
27 views

Apache2.conf - ServerName works but ServerAlias does not

My VirtualHost setup has been wonky for months. I've searched the web several times for hours and nothing has solved this issue. At the moment, the problem is with my second VirtualHost. Using the ...
0
votes
1answer
15 views

Robots.txt with several VirtualHosts

My web server is running (apache 2.4.10) different virtual hosts for the following domain name : foo.example.com bar.example.com www.example.com example.com Here is the configuration file for my ...
0
votes
1answer
25 views

Cannot access Apache 2 virtual host on localhost

I originally set my web root in /etc/apache2/sites-available/000-default.conf to point to /home/me/www. Due to the requirements of a new project, I need to be able to set /home/me/www/vendor/www as ...
5
votes
2answers
121 views

Apache2 VirtualHost with same name as machine

I am using Debian have server with canonical name (defined in /etc/hostname and in reverse DNS) server.example.com root@server:~# uname -a Linux server.example.com 3.16.0-4-amd64 #1 SMP Debian ...
0
votes
1answer
24 views

Load Balance Virtual Host and Amazon/DO Server using HAProxy

I am stuck with an issue and im hoping someone can point me in the right direction. I have a server that hosts multiple sites using Apache Virtual hosts (shared IP's). A few months ago my server ...
0
votes
1answer
23 views

VirtualDocumentRoot and CNAME

We have a apache setup that uses VirtualDocumentRoot. This is out vhost file <VirtualHost *:80> ServerName vsweb005.[domain].local ServerAlias *.*.*.vsweb005.[domain].local ...
1
vote
0answers
26 views

Apache behind a Reverse Proxy in DataPower

I have been checking this previous question Apache Virtual Host SSL Behind Reverse Proxy that seems to be similar to what I am looking for. The main differences are two: I am not using SSL (for ...
1
vote
1answer
42 views

Apache (httpd) VirtualHost RewriteCond Variables not working

I am trying to make a dynamic virtual host entry with the intent of redirecting all traffic to .mydomain.com to /var/www/html/ this part works but I also what a Rewrite conditions that checks if the ...
0
votes
3answers
31 views

Apache - Difference between VirtualDocumentRoot and DocumentRoot?

I found it very difficult to find this answer, after an hour (yes, an hour) of googling and browsing through several posts on stackexchange and several other forums... even through Apache's ...
0
votes
0answers
5 views

Lost all virtual host setting after tomcat7 restart

Halo Gurus I have a problem with setting a new hosts in Tomcat7 host-manager application. Host-manager application works very well. Everything works. But when restart the server, all settings are ...
-1
votes
1answer
23 views

Apache2 new VirtualHost entry can not find server - DNS issue?

I'm using Apache2 on Ubuntu 12.04.5 LTS server. Server is my company (work) server and has a public IP, moreover, it hosts about 5 different pages which are available worldwide, I mean, on the ...
0
votes
1answer
68 views

Nginx conflicting server name for subdomain

I currently have a vhost running on Nginx for foo.domain.com and everything works great. I created a new file for a new sub-domain I want to add called bar.domain.com. I use the same settings for ...
0
votes
0answers
22 views

How to setup NGINX Reverse Proxy for Mulitple Domain with diffirent Hosting

Recently, I've started working on my NGINX reverse proxy project. There following websites which is hosted on different website Hosting with different IP / DNS. Example.com foo.net Takesrs.com ...
1
vote
1answer
19 views

Dreamhost Cloud Computing: Ubuntu 14.04 LTS / Apache 2 listen multiple port

I'm configuring an Ubuntu 14.04 LTS within your DreamCompute service. I have installed apache2 and currently running successfully a website in port 80. What I'm struggling now is to configure ...
0
votes
1answer
16 views

Virtual host with ProxyPassReverse and preserve sub link

I'm hosting a web site using Apache and i'd like to create a virtual host like freepbx like mydomain.com/freepbx. freepbx runs on port 7000, and when I create the virtual host it automatically ...
0
votes
1answer
35 views

Installing Domain SSL is not working

I have a Linode Server running Debian 7.5 & Apache2 I have the following files stored in the /etc/ssl/localcerts/ directory: www.test-site.com.key www.test-site.com.csr www.test-site.com.crt ...
0
votes
1answer
27 views

Single IP multiple domains SSL issue

I've just noticed a small problem with a self signed SSL I am using for a webmail subdomain on one of my domains. I was using https://webmail.website0.com just to secure it a bit but I've noticed ...
0
votes
0answers
56 views

Changing port for phpmyadmin

I've got on my VPS tomcat running on the port 80. Nevertheless I want to have there phpmyadmin (running on some other port) as well... I tried to edit /etc/apache2/ports.conf and ...
0
votes
0answers
27 views

Apache Virtual Host Not Working

I'm currently in the process of migrating several domains from Media Temple VPS to Linode VPS and all of the transfers have gone great until one of the last domains to move. I've gone through the ...
0
votes
0answers
17 views

Apache dynamic virtual hosts and load includes dynamically

I have setup dynamic virtual hosts, on Apache using this with Ubuntu. http://www.sitepoint.com/set-automatic-virtual-hosts-nginx-apache/ However I can't seem to load environment variables in a conf ...
0
votes
0answers
59 views

Apache 2.2 on Windows - Have a http version of a https site

I am wanting to use an Arduino to connect to my website jrprnet.com for a project me and a friend are working on. The only problem is that all requests to my website on http are automatically ...
7
votes
8answers
680 views

Multi-site hosting - important vulnerability being missed to secure sites from each other?

EDIT #2 July 23, 2015: Looking for a new answer that identifies an important security item missed in the below setup or can give reason to believe everything's covered. EDIT #3 July 29, 2015: I'm ...
0
votes
1answer
40 views

One virtual host on Apache is not visible on WAN, only on LAN

I can't set virtual hosts on Apache 2.4.12 32 bit on a Windows 7. I was able to do this in previous versions, but now even following the official instructions I can't set up virtual hosts properly. ...
1
vote
1answer
25 views

Apache ever match a virtual host with a different ServerName

i have an issue. I have a VirtualHost for domain1.com on IP 1.2.3.4, but Apache reply to the request to the IP 1.2.3.4 ignoring the ServerName. So, if i point domain2.com to 1.2.3.4 i see the content ...
2
votes
1answer
29 views

Apache VirtualHost wildcards with IPv6

Using Apache 2.4 on Ubuntu, I have the following in ports.conf: Listen XX.73.44.57:80 Listen [2001:XX:0:2c38::39]:80 <IfModule ssl_module> Listen XX.73.44.57:443 Listen ...
1
vote
0answers
31 views

firewall on server preventing access by multiple computers on same NAT'ed ip

I am encountering a strange problem with my VPS provider and wondered if anyone here with firewall / sysadmin experience had seen anything like this. Has anyone seen a situation where a firewall or ...
1
vote
1answer
37 views

Access static files on Tomcat directory using VirtualHost

I am running a Java webservice (JAX-WS) on Tomcat 8 from my AWS EC2 Linux instance, and I have a subdomain pointing to the service, so that I can call the service with URL ...
0
votes
0answers
26 views

Subdomain only read the index file

This is the structure of the directory: +example.com +public_html +assets //assets directory of example (css,js,img) -index.html //the index file for example +subdomain ...
0
votes
0answers
10 views

Denying access to autogenerated file in Apache and Magnolia

I have several virtualHosts in a machine with magnolia working on it. Magnolia auto-generate a sitemap's file so I'm trying to deny its access with Apache 2.4 I've tried this: <FilesMatch ...
1
vote
0answers
57 views

Can't get VirtualHosts to inherit global settings from default-server.conf in Apache 2.4 on SLES 12

I am using Apache 2.4.10 on SLES 12. According to the the SLES 12 Administration Guide the default-server.conf file is "Global configuration for all virtual hosts with reasonable defaults. Instead of ...
0
votes
1answer
40 views

Apache Web Server Virtual Hosting

i'm making a apache web server with two virtual host, i have a DNS Server caching-only on my other centos 6 minimal VM, the IP Address of my Apache Server is 192.168.1.9, when i try to browse that IP ...
1
vote
1answer
42 views

Set VirtualHost for Tomcat 8 webservice on AWS EC2

In addition to the default Apache on AWS EC2 Linux I have installed Tomcat 8 and deployed a webservice on it. The current URL (which works) is http://example.com:8080/MyService/api/generatePath I ...
0
votes
0answers
33 views

Can't get files uploaded by php on Apache virtualhost

A couple of weeks ago i got the idea that i should host a Wordpress blogg on my VPS under a different domain name. I set up my virtual host following a guide i found on digital ocean tutorials How To ...
1
vote
1answer
47 views

Redirect to https:// with www apache2

I am redirecting all http:// request to https:// using apache2 host .conf file like this. <VirtualHost *:80> ServerName example.com ServerAlias www.example.com Redirect / ...