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)

1
vote
1answer
2k views

How to configure ProFTPD to provide a different anonymous FTP for each domain?

I'm trying to configure ProFTPD to match the following situation: Multiple domains on a single IP address. Each domain should have it's own anonymous FTP directory. Everything runs on Ubuntu ...
0
votes
2answers
3k views

Forbidden (403), when accessing server-status on apache 2.2.22

I'm getting Forbidden error when trying to access www.website.com/server-status mod_status is enabled The VirtualHost: <VirtualHost *:8080> ServerName website.com ServerAlias ...
-1
votes
1answer
24 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 ...
2
votes
1answer
58 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
1k views

lighttpd virtual hosting configuration

I need help setting up virtual hosting in lighttpd. i have the lighttpd default webpage in /var/www/lighttpd dir and i have created other dirs for my other websites /var/www/web1.com/public_html and ...
2
votes
3answers
2k views

Why isn't Apache recognizing my VirtualHosts ServerName?

I am trying to reconstruct a server from backups after a hardware crash. Rather than restore the entire image, I'm trying a combination of installing software and then restoring configuration files ...
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> ...
1
vote
1answer
79 views

Apache VirtualHost options with ePages e-commerce solution

I have a Centos server running ePages (which runs on Apache). Now I want to use the same server to host a couple of other sites as well, but I can't seem to get my configs working correctly. I'm not ...
-1
votes
1answer
19 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 ...
2
votes
1answer
51 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 ...
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 ...
0
votes
1answer
27 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
42 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 ...
0
votes
1answer
1k views

How to combine Lighttpd simple_vhost with www to non-www redirects?

I've set a simple virtual hosting using Lighttpd simple_vhost module and want to do a permanent 301 redirect from www to non-www. Here are most significant parts of my configuration file: ...
84
votes
5answers
49k views

Multiple SSL domains on the same IP address and same port?

This is a Canonical Question about Hosting multiple SSL websites on the same IP. I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the ...
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
42 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 ...
5
votes
2answers
120 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 ...
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
3answers
1k views

multiple virtual hosts on EC2 ubuntu - cannot access second host, always accesses default

I have been searching and reconfiguring for 6 days now and have lost several clumps of hair. PROBLEM: I want 2+ virtual hosts on my ubuntu server (1 ip) BUT - Only the first "alphabetically" listed ...
0
votes
0answers
20 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 ...
1
vote
2answers
125 views

virtualHost configuration for Apache 2.4 with tomcat 5.5

I currently have Apache 2.4 integrated with two tomcat servers in a load balancing configuration. The webserver will take requests from the DNS request for two domain names, http://domain1.nl and ...
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 ...
3
votes
2answers
3k views

Nginx Multiple Domains

I am trying to add a second virtual host to nginx. When i go to the new domain it redirects to the old one. I have tried restarting Nginx, rebooting the server. Has anyone come across this before, ...
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
23 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
24 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 ...
2
votes
2answers
2k views

Apache 2 UserDir for only one VirtualHost

Is it possible to enable the UserDir Directive for just one VirtualHost rather than have it on for all and then disable it (with "UserDir disable") for each VirtualHost you don't want it on? I have ...
3
votes
1answer
3k views

nginx is defaulting all requests to, what should be, a vhost

I have nginx setup on my server with the following config file worker_processes 2; events { worker_connections 1024; } http { include mime.types; default_type ...
0
votes
1answer
22 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
996 views

Overlap with VirtualHost on Apache2

I am receiving the following error message when restarting my apache2 server: [Wed Oct 31 11:44:33 2012] [warn] VirtualHost 172.30.30.12:443 overlaps with VirtualHost 172.30.30.12:443, the first has ...
0
votes
1answer
151 views

Why is this configuration redirecting www.sec.com to www.domain1.com?

NameVirtualHost *:80 <VirtualHost *:80> ServerName www.domain1.com DocumentRoot "/var/www/html/home/" ScriptAlias /cgi-bin/awstats /var/www/cgi-bin/awstats Alias /awstats /var/www/html/awstats ...
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 ...
0
votes
2answers
892 views

Apache vhost always show me the same content on different subdomains

I have two subdomains on my VPS, i have registered the two subdomains in my DNS pointing to the same IP address. the version installed is Server version: Apache/2.4.7 for Ubuntu 12.04. I've enabled ...
1
vote
0answers
24 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
39 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 ...
1
vote
1answer
1k views

SSL Connection Error

I have purchased a comodo ssl cert and have submitted the Certificate Signing Request (CSR) generated by my server to the ssl management site. With the 3 files it returned me with, - ...
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 ...
7
votes
8answers
678 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
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
62 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
21 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
34 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
15 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
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 ...
1
vote
2answers
1k views

How to secure Apache for shared hosting environment? (chrooting, avoid symlinking…)

I'm having problems dealing with Apache configuration: the problem is that I want to limit each user to his own docroot (so, a chroot() would be what I'm looking for), but: Mod_chroot works only ...