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)

2
votes
2answers
72 views

Apache 2 Multiple Named Virtual Hosts with one IP vhost

I have an instance running on AWS, with an Apache 2, two named domains and one ip. I managed to configure apache with both domains, ( domain1.com and domain2.com ). The first domain's docroot is ...
7
votes
2answers
4k views

Multiple SSL vhosts using wildcard certificate in nginx

I have two hostnames sharing the same domain name which I want to serve over HTTPs. I've got a wildcard-SSL certificate and created two vhost configs: Host A listen 127.0.0.1:443 ssl; ...
0
votes
0answers
196 views

Wordpress serving PHP but not CSS or JS

I'm trying to set up an Amazon EC2 instance to run a Django app and a WP instance side by side, differing only by the incoming URL. Initially, accessing the site via mysite.com/wordpress worked, but ...
0
votes
1answer
93 views

Accessing Apache virtual host on my local machine

I use dyndsn.org and port forwarding to manage access of my local Apache webserver from the Internet. It access my apache htdocs via http://myusername.dyndns.org/somesite. However, I have set an ...
-1
votes
1answer
85 views

Running Multiple sites with multiple domains apache

I am having a rough time running apache and using multiple domain names here is a snippet of my config file. I keep getting a error saying that NameVirtualHost has no VirtualHosts. I want them both ...
2
votes
1answer
48 views

Another domain other than localhost?

I have a LAMP installed on my computer without problems. I can go to http://localhost and it will by default show the contents of /var/www . Is there a way to add new "domains" that refrence ...
-1
votes
2answers
49 views

Should I be using www. when setting up virtual hosts on apache?

Does it matter whether or not I include the www. sub-domain when creating new virtual hosts on apache? So is this? /etc/apache2/sites-available/www.example.com better than this? ...
2
votes
2answers
342 views

Use subpath internal proxy for subdomains, but redirect external clients if they ask for that subpath?

I have a VirtualHost that I'd like to have several subdomains on. (For the sake of clarity, let's say my domain is example.com and I'm just trying to get started by making foo.example.com work, and ...
0
votes
2answers
871 views

Trying to set up virtual hosts to block access by IP, for three domains and when using SSL on one domain

So I want all this on one server: - 3 domains / websites - SSL on one of them - nothing to be accessed by an IP address (e.g. 'domain.com' is okay, but not by just typing '123.55.44.123' into the ...
0
votes
1answer
767 views

setup apache and mod_fastcgi to work with php-fpm not working

I try to setup php-fpm with apache I am still missing a piece of the puzzle, because the page returns a 404 The requested URL /php-fpm/index.php was not found on this server. Apache/2.2.24 (Unix) ...
0
votes
0answers
76 views

Two SSL certs on different ports using Apache2 virtual hosts

On a RHEL6 machine with Apache2, I am hosting two sites using name based virtual hosts. Each site needs to run SSL with its own certificate so I have one site using port 443 and one site using port ...
0
votes
2answers
144 views

Setting two https on one IP, two domains also

I have two domains and one IP. Both domains listen on port 80. Also on port 443 listen one of the domains (from these two). But there is also possibility to access one of the domains only by IP. I ...
0
votes
1answer
200 views

Mac OSX 10.8.4 - Apache - Setting up Virtual hosts

I can't seem to get my virtual hosts working: I have an /etc/apache2/users/scottr.conf set up as: <Directory "/Users/scottr/Sites/"> Options Indexes MultiViews FollowSymLinks ...
0
votes
0answers
85 views

Messed Up Virtual Hosting After Installing Django with mod_wsgi

I was tasked with setting up Django, which seemed to require mod_wsgi, on an Ubuntu server fairly recently, which I was able to get working through much ardor and trial and error. Unfortunately, I ...
1
vote
1answer
189 views

RHEL Apache: 403 Forbidden on VirtualHost

My files are all owned by apache:apache. All directories have 770 permissions and files have 660 permissions. My original virtualhost seems to be fine but the second one is getting 403 errors on all ...
1
vote
2answers
37 views

Adding additional host to Apache2 [closed]

I have been tasked to add a copy of an existing website to the setup. (To be used as a test environment) The existing setup consists of : a.mysite.com b.mysite.com c.mysite.com I've been trying to ...
-1
votes
1answer
66 views

Allowing others in LAN to access dev sites at personal virtual host (myname.myserver.com) [closed]

I'm on Windows and have used WAMP to set up Apache, MySQL and PHP. I've installed ColdFusion on top of that, and everything works great for my local development. I've also set up my own virtual hosts ...
0
votes
1answer
203 views

Trouble configuring virtual host to allow standard wordpress mod_rewrite for permalinks

I'm having a little trouble getting the standard mod_rewrite that wordpress generates in my directorys .htaccess file to work correctly. The server I'm using has a virtual host set up on it by ...
1
vote
1answer
178 views

Virtual Host on Top Level Domain not working

I'm trying to route a top level domain through Apache Virtual Hosts, but I can't seem to get it to work. <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mydomain.net ...
-2
votes
1answer
98 views

GUEST MEM - VMWARE [closed]

I am reviewing an esxi 4.1 host memory usage I would like to lower some of the memory usage on some virtual machines. For example here I have a windows 2003 server This server is using 1GB Ram one ...
2
votes
1answer
56 views

What are these localhosts accessing Apache virtualhost?

In my server-status page I see a lot of requests from localhost. what are these for? are they actually doing anything? 201-0 - 0/0/327 . 0.94 28653 0 0.0 0.00 99.83 ::1 domain.com ...
0
votes
2answers
113 views

cannot set a virtualhost name with nginx

this is what I did with the standard nginx.conf if I use port boo.dev:8060 I have no problem, but if I do localhost or it's alias it always downloads something? I cannot seem to set a virtualhost ...
0
votes
1answer
129 views

Apache not restricting domain/subdomain port combinations

I have encountered an issue when I want to restrict the on domain/subdomain combinations to particular ports. For example when I just want the following domain/subdomain port combinations to work ...
2
votes
1answer
183 views

Setting up custom error pages for nginx with https and virtual hosts

We have an nginx (OpenResty 1.4.2.7) instance acting as a load balancer. It has two server directives, one to serve one specific site (let's call it www.our-special-host.com) and one wildcard for ...
0
votes
1answer
353 views

nginx - show different page when ip address is given instead of domain name

I have installed on my vps nginx with ISPConfig3. I created a domain mydomain.com through ispconfig and everything works just fine except two things. When i go to the ip address of my vps, my ...
1
vote
2answers
354 views

Ubuntu Apache2 Secure Directory Issue

I have been trying to prevent access to WordPress wp-admin and wp-includes directories on Ubuntu 13.04 with Apache2 2.2.22. First I tried to do this using .htaccess which for some reason wouldn't ...
0
votes
1answer
143 views

Redirection of subdomain working, but server not found error : Linode [duplicate]

Here is my virtual host : <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName policy.domain.com ServerAlias www.policy.domain.com DocumentRoot /policy ErrorLog ...
0
votes
1answer
73 views

OS X Server ignores virtual hosts

I have a OS X Server 10.8 [with the Server App]. I have enabled the websites service and I've added the path to /Volumes/dev1/http as the root for my Server Website. I've edited the file in ...
0
votes
2answers
41 views

Apache virtual hosts, aliasing, and directories

If you have an Apache running at somewhere.net, and you have a number of virtual hosts as well (a.somewhere.net, b.somewhere.net), you can access directories on the main branch while you are on the ...
0
votes
1answer
158 views

How to prevent SSL connections for some Virtual Hosts in apache [duplicate]

I'm using Name based Virtual Hosts on ports 80 and 443. Some of the virtual hosts only support port 80. I don't have, and won't be getting certificates for these hostnames. How can I configure ...
1
vote
2answers
837 views

Apache reverse proxy for Cloud9 using ServerName

I am trying to setup a reverse proxy to a Cloud9 instance running locally on my server using Apache. I have the following setup: <VirtualHost *:80> ProxyPreserveHost On ProxyPass / ...
2
votes
3answers
203 views

How can I add a virtual host to serve requests for a (working) CNAME?

On an AWS EC2 machine, in my /etc/httpd/conf/httpd.conf file I had this server configuration: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin me@me.com ServerName www.example.com ...
1
vote
1answer
38 views

Lab 2012 Hyper-v migration from esxi

I need some clarity on the hyper-v virtualization strategy coming from ESXi 4.x. Purpose: A VM for Sql Server 2012 w/ SP1 A VM for Sql Server 2014 CPT1 Hardware: Poweredge T100 8GB RAM, 2 SSDs ...
0
votes
1answer
57 views

Apache vHost - Optimized and Secure

I took a look at the Canonical Topics ServerFault has and sadly the one I was after "Apache vHost" was on the list of unanswered questions. I found this a little surprising as there are loads of ...
2
votes
2answers
6k 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 ...
0
votes
0answers
31 views

Apache virtual hosts file - would like to have a rails test directory

I recently got Phusion passenger installed on my VPS, and I am just starting out on my Ruby / rails projects, so I would prefer to put the rails projects in a directory named ...
1
vote
1answer
206 views

ServerAlias not working in ubuntu

I know it is a question asked several times, but I've read them all and not solved the problem. I have configured the virtualhost apache like this: sudo nano /etc/apache2/sites-available/example.loc ...
-1
votes
1answer
173 views

How exactly do I connect my domain to my apache2 VPS?

I followed a tutorial last night on how to create a virtual host on Apache and later connected my domain to it using DNS A records. Someone today, I can't even connect to the domain as it says in ...
1
vote
2answers
3k views

What are the differences between Floating IPs and Virtual IPs?

This might be a pedestrian question but what is the difference between a "Floating IP" address and a "Virtual IP" address? Are they synonyms?
-2
votes
2answers
811 views

Point IP Address to /var/www/ localhost

I am paying for a Virtual Private Server with Linode. I recently set it up with apache to host two different websites. Now that I've added the sites, I can no longer access my index.html file at ...
1
vote
0answers
187 views

reverse proxy on apache for a single virtual host

Preamble: I've configured a publicly accessible server with multiple virtual hosts. The requests for one virtual host need to be sent to a backend server. All the other requests need to be served ...
2
votes
1answer
2k views

How to do dual stack IPv4/IPv6 with virtual hosts on nginx 1.4

I'm using nginx 1.4.1 (now, before it was 1.2.1) and would like to support dual stack (IPv4 and IPv6). I'm always getting duplicate listen options for xyz errors from nginx. server { listen 80 ...
0
votes
1answer
802 views

Redirecting sub-domains of different domains to the same site

I have a cloud VPS on which I am hosting a few sites on behalf of a few clients. My Apache is configured with VirtualHosts (I use Zpanel), so each site has its own root folder, and from the DNS ...
1
vote
2answers
347 views

Apache 2.2 server stopped after adding code for virtual domain name

i am developing a website on Apache 2.2 local server. The site is still in development stage. I wanted to get a custom domain name for my website, so that i could access it as "mysite.local" or ...
0
votes
1answer
372 views

No SSL certificate error when configuring redirection in virtual host

My server is working fine with a self-signed SSL certificate until I added the following lines to redirect request containing wwww to non-www site: <VirtualHost *:443> ServerName ...
-1
votes
1answer
166 views

Apache Automatic Virtual Host set up on OSX

I have multiple projects which I would like to server using an Apache VirtualDocumentRoot setup using Apache's mod_vhost_alias module such that each project has it's own domain name. As an example: ...
0
votes
1answer
421 views

How to setup apache to have overlapping virtual host wildcard server aliases? [duplicate]

I have a development setup of subdomains with apache/wamp, everything is working as I need with the "regular" setup and separately with the "xyz" setup, but I have to change the configuration and ...
1
vote
1answer
50 views

Domain and IP should have different DocumentRoot

the Domain points to an IP / Server. But I like to have different documentRoots if the server is accessed via IP or via Domain. Therefore I build this configuration: NameVirtualHost *:80 ...
0
votes
1answer
94 views

Delete log files on Virtual Host

I have a few virtualhosts set up on my machine, and the server keeps crashing because of the disk space being too full. I've checked out and it seems that one of my virtual host log folder is 2Gb. In ...
0
votes
1answer
36 views

Nginx server blocks matching on ip

I have two IPs mapped on my host: 1.2.3.4 and 11.22.33.44 ("fail over" IP) I'm working on a website that don't have a domain name for now. I'd like to serve it under 11.22.33.44 until I have a ...