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
955 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
16 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
855 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
16 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
23 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
18 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
4 views

Can I create a virtualbox server that manages all lan traffic and only when running? [migrated]

I'm running a Windows 7 host and a Linux Mint guest vm in Virtualbox using a bridged adapter. I have multiple web sites set up in the guest os. Currently, I can only access the page at var/www/html ...
7
votes
8answers
625 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 ...
0
votes
2answers
2k 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 ...
0
votes
0answers
16 views

How do i make my web browser choose local virtual host over a site on internet [closed]

I have different virtual hosts on my local machine i added them into /etc/hosts by ip 127.0.0.1 They were working fine but today when i try to access one browser was keeping connecting to internet ...
-1
votes
1answer
21 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
29 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 ...
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 ...
82
votes
5answers
48k 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 ...
0
votes
0answers
17 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
11 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
28 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
14 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
988 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 ...
0
votes
1answer
26 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
46 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
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: ...
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 ...
0
votes
0answers
26 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
15 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
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
53 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 ...
0
votes
1answer
26 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. ...
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, ...
1
vote
3answers
179 views

Apache subdomain configuration not working

I have a Debian 6 server that was configured by somebody else. I was asked to add a subdomain on that server. I configured the DNS correctly (checked with nslookup), created the directory in ...
-1
votes
0answers
17 views

Reverse Zone with Multiple Virtual Hosts (same machine)

I have two Virtual Hosts on same machine, using Apache 2: <VirtualHost *:80>ServerName house.com</VirtualHost> <VirtualHost *:80>ServerName car.com</VirtualHost> Also, I ...
1
vote
1answer
23 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
2answers
2k views

nginx ignores my include directive?

I'm currently migrating from Apache to nginx. I have a couple of domains that are going to be hosted on the same machine with one IP address. Though I've configured nginx --prefix=/my/path it seems ...
2
votes
1answer
23 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 ...
2
votes
1answer
30 views

Pick SSL cert based on domain name without separate VHosts

I'm working with a WordPress multi-site network that has various top-level domain names. We're currently serving them all up with one virtual host: <VirtualHost *:80> ServerName ...
1
vote
0answers
27 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 ...
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 ...
1
vote
1answer
33 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 ...
2
votes
3answers
8k views

Apache SSL configuration - Invalid method in request \x16\x03\x01

I'm trying to set up https service on my VirtualBox guest instance running Debian Squeeze and Apache 2. When trying to load my virtual host's test page in a browser from my Win7 host machine, I'm ...
7
votes
3answers
12k views

“Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile]” error

After recently upgrading Apache2 to version 2.2.31 I found a strange behaviour in SSL VirtualHost setup. A few of the website I'm hosting were showing the certificate for the default host even if the ...
0
votes
0answers
23 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
44 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 ...
1
vote
2answers
124 views

Can't configure two subdomains apache 2.4

I'm trying to configure two subdomains using apache 2.4, but seems that there is a problem I can't resolve. Here is the apache configuration file <VirtualHost *:80> ServerName ...
0
votes
1answer
37 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 ...
0
votes
1answer
41 views

Apache: virtual host and mod_fastcgi — how does it work?

I read this article to set up virtual host with mod_fastcgi, but I don't quite understand the following configuration: FastCgiExternalServer /var/www/php5.external -host 127.0.0.1:9000 AddHandler ...
1
vote
1answer
36 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 ...