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
70 views

Open Ip/folder in Nginx

I want to open a website with no domain name from IP/folder_name Each time I try to access the website , I get redirected to an other website on the same server : Here is my default configuration : ...
1
vote
0answers
339 views

Varnish server in front of nginx server with multiple virtualhosts

I have tried to search for a solution for this, but can't find any documentation/tips on my specific setup. My setup: Backendserver: ngnix: 2 different websites (2 top domains) in virtualenv, ...
0
votes
3answers
714 views

How to access web page on a server using the IP 10.0.0.3?

I have three internal servers that will never have any connection to the internet. I've had to build a local yum repo to set them up with tools like bugzilla and the like. However, all three are ...
0
votes
1answer
80 views

How to protect a virtualhost by Both IP OR password

I have managed to password protect a virtualhost by using this: <Proxy *> Order deny,allow Deny from all Allow from office-ip-1 office-ip-2 ...
1
vote
2answers
405 views

Virtual Host Configuration and mod_rewrite - Removing PHP Extension and Adding Forward Slash

On my production server, things are fine: PHP extension removal and trailing slash rules are in place in my .htaccess file. But locally, this isn't working (well, partially, anyway). I'm running ...
0
votes
2answers
1k views

ProxyPass for specific vhost with mod_rewrite

I have a web server that it set up to dynamically server different document roots for different domains <VirtualHost *:80> <IfModule mod_rewrite.c> # Stage sites :: ...
0
votes
0answers
197 views

How Do I Enable My Ubuntu Server To Host Various SSL-Enabled Websites?

Actually, I Have looked around for a few hours now, but I can't get this to work. The main problem I'm having is that only one out of two sites works. I have my website which will mostly be used for ...
0
votes
1answer
53 views

Apache Virtual host (SSL) Doc Root issue

I am having issues with the SSL document root of my vhosts configuration. Http sees to work fine and navigates to the root directory and publishes the page fine - DocumentRoot ...
0
votes
0answers
483 views

Why standard, virtual host Drupal 7 config causes 403 (Forbidden) in Apache2?

Virtual host declaration causing the problem (source): <VirtualHost *:80> ServerAdmin admin@d7 DocumentRoot /vagrant/d7 ServerName www.d7.local ServerAlias d7.local RewriteEngine On ...
2
votes
2answers
74 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
5k 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
205 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
94 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
50 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
50 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
357 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
905 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
801 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
148 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
207 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
221 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
67 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
221 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
184 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
58 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
114 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
132 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
187 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
356 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
364 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
148 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
76 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
42 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
160 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
878 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
205 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
7k 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
223 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
181 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 ...
2
votes
2answers
4k 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
867 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
194 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 ...