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

6
votes
2answers
7k views

How to disable default VirtualHost in apache2?

In apache2 by design, any http request with an unknown Host will be directed to the first loaded VirtualHost. Is there a way to disable this feature? Said differently, I want to have a web server ...
4
votes
2answers
4k views

vhost setup for multiple SVN repositories on same server

I have 2 svn repos on my EC2 instance. They are located in /ebs/svn/repo1 & /ebs/svn/repo2. I have created a domain alias svn.mydomain.com, to point to the parent directory of above (/ebs/svn). ...
3
votes
1answer
6k views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
3
votes
3answers
4k views

What's wrong with my VirtualHost?

I have the following VirtualHost // filename: /etc/apache2/sites-available/ccbbbcc <VirtualHost 1.1.1.1:80> ServerAdmin utopia@ccbbbcc.com ServerName ccbbbcc.com ServerAlias ...
2
votes
1answer
1k views

Apache as a proxy for Nexus, Jenkins and Foreman (Several VirtualHosts on same domain, IP and Port)

I'd like to configure Apache to be used as a proxy for Nexus, Jenkins and Foreman which are installed and running on the same server. Here is an example of the Virtual host config file for Foreman, ...
2
votes
1answer
2k views

Can't configure PHP error log

I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ...
2
votes
1answer
329 views

Per-user vhost logging

I have a working per-user virtual host configuration with Apache, but I would like each user to have access to the logs for his virtual hosts. Obviously the ErrorLog and CustomLog directives don't ...
2
votes
0answers
800 views

Puppet apache vhost automatic deployment

Hi there puppeters :), I hope you can help me with a situation. Namely, I will use puppet to deploy many (I mean really many) nodes with Apache installed. The problem I have is that for now the only ...
2
votes
1answer
3k views

How to run icinga with a apache vHost?

I have installed icinga from the icinga own repos on my debian squeeze box but now I don't know how to change the current config: # apache configuration for icinga ScriptAlias /cgi-bin/icinga ...
2
votes
1answer
1k views

Why can't I get rid of default index.html even if I disable the default virtual host in Apache2?

I have created a virtual host settings file and I disabled the default settings by using a2dissite default (this is a pretty standard Ubuntu 10.04 installation). But no matter what I try my Apache2 ...
2
votes
2answers
1k views

Multiple SSL websites on the same Apache server

I am still having issues trying to get multiple valid SSL certificates to work for multiple website domains on the same Apache-Ubuntu server. Client browsers need to successfully validate SSL ...
2
votes
2answers
721 views

dhclient.conf: Send 2x host-names to the DHCP server?

Already working: Debian box DHCP with send host-name me.company.com in dhclient.conf DNS updates automatically with an entry for me.company.com What I want to add: Send a second host-name, so ...
2
votes
1answer
1k views

mod_rewrite adding documentroot to url

The following rewrite redirects http://example.com/ to http://example.com/www/www.example.com/public%5Fhtml instead of http://www.example.com/. /www/www.example.com/public_html is the DocumentRoot. # ...
1
vote
2answers
11k views

nginx default server not working

I'm using Debian, most recent dotdeb nginx-lite. I've read that the first server section found by nginx will be used as the fallback/default section used if there is no specific server section for a ...
1
vote
2answers
148 views

How to configure multiple apache virtual hosts on multiple ports?

I have a server with one IP address. I want to run several virtual hosts in an Apache 2.2. And I want all virtual hosts to be accessible on port 80 (plain http), 8000 (plain http) and 443 (ssl). For ...
1
vote
2answers
1k views

mod_vhost_alias + suEXEC: auto selecting uid/gid

I'm trying to configure Debian 6.0.4 for massive shared hosting with PHP5. Packages apache2-mpm-worker libapache2-mod-fcgid apache2-suexec are installed. I successfully loaded mod_vhost_alias and ...
1
vote
2answers
423 views

How to block Spiders / Scrapers by REMOTE hostname / domain for all Virtual Hosts in Apache?

I've seen plenty of robot.txt stuff, and some mod-rewrite solutions that looked promising… but haven't been able to find a simple solution to block Spiders / Scrapers / whoever the hell I want to ...
1
vote
3answers
790 views

Trouble setting up subdomain in Ubuntu

I just set up a micro instance of an Ubuntu web server an Amazon EC2. Everthing is running great, I've managed to configure the VirtualHost but I'm having a hard time setting up a subdomain. Here's ...
1
vote
1answer
488 views

How to better simulate remote development locally with virtual hosts?

When developing WordPress websites, for instance, such a script saves a few values on the database with detected paths/addresses. To avoid issues when uploading the production version to the server ...
1
vote
1answer
1k views

One IP for multiple SSL sites? [duplicate]

Possible Duplicate: Multiple domains with SSL on same IP We are planning to host Magento websites in a dedicated server. Is it possible to host ~40 Magento websites per dedicated server. ...
1
vote
1answer
2k views

php.ini use multiple include paths - openbasedir restriction

I need to allow an include path for a vhost subdomain on Plesk 10. I've edited the PHP PEAR path into /etc/php.ini as I'm happy for it to be globally available: include_path = ".:/usr/share/pear/" ...
1
vote
1answer
105 views

way to redirect page to www using virtual host configuration in sites-available for apache2?

now days I create two files one for example.com and one for www.example.com because the wild card *.example.com doesn't work right for accessing example.com my question is how do I make example.com ...
1
vote
1answer
3k views

Need help for configuring VirtualHost of Apache

I have virtual machine running Ubuntu. I want to type in browser "http://localhost/mwiki" and see my MediaWiki site. I put this site into /var/www/mwiki folder and I configured Apache "default" file. ...
1
vote
1answer
2k views

Apache vhost with and without 'www'?

With Mac OS X 10.6, I'm having some fun moving from the old way of hosting multiple sites (having a block of code in a .conf file for each virtual host) to a slightly less old way (telling the server ...
1
vote
3answers
638 views

apache: several ssl vhosts on the same computer and same ip

I have a Linux server with Gentoo Linux 64 bit. I have Apache 2.2.17 installed and I have several vhosts configured on it that work correctly. When I try to add SSL vhosts, apache detects only the ...
1
vote
1answer
356 views

Blanket redirecting domains with VirtualHosts

I have Apache set up on a CentOS 5 box with some virtual hosts. NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/html/default ServerName fail </VirtualHost> ...
1
vote
1answer
213 views

virtual host debian apach2

i'm trying to add a new domain to my server which is running debian and apache2. How exactly should i go about adding the domain? Through the sites-enabled/available? and if so how do i do it thanks
1
vote
3answers
397 views

VirtualHost not directing properly based on domain name

We recently moved from name-based hosting to individual IPs for an SSL implementation. Thus, each website now has its own IP. While www.domain1.com and www.domain2.com are being directed to the ...
1
vote
2answers
1k views

Choice of document root for virtual hosts

I'm investigating the configuration of Name-based virtual hosts, under apache, for the provisioning of a main domain, and its sub-domain. I've found one example on the web that suggests a ...
1
vote
3answers
920 views

httpd.conf / VirtualHost configuration problem for blog.example.com

I have a site located at /var/www/html/ which works fine. I'm now trying to setup "blog.example.com" by adding the following entry in httpd.conf Setup1 <VirtualHost *:80> DocumentRoot ...
1
vote
1answer
1k views

monitoring of the virtual host (apache) bandwidth and visitors via nagios?

I've installed Nagios and Centreon, and I want to monitor the bandwidth and the number of visitors of each VirtualHost in Apache server. I've found check_http but it checks only if the virtualHost is ...
1
vote
2answers
7k views

Hosting multiple domains on Mac OS X Server

I'm setting up Mac OS X Server (10.5 Leopard) for the first time. I will be configuring it to run multiple domains (or "virtual hosts" as they are called), and for each domain I want to set up a Web ...
0
votes
1answer
5k views

nginx proxy_set_header x-forwarded-proto seemingly not working

Since i am a beginner in nginx proxying i have a question. The gist of it: Where does an nginx proxy set defaults for php's $_SERVER["HTTP_X_FORWARDED_HOST"], $_SERVER["HTTP_X_FORWARDED_SERVER"] and ...
0
votes
2answers
628 views

hosting two public facing website on single ec2 instance

I am trying to host 2 website xxx.com and yyy.com on a single amazon ec2 instance. So far this is what I have done. Created ec2 instance with Ubuntu and set up apache, mysql & Php On Ec2 I ...
0
votes
2answers
637 views

View/test websites on new server, without changing domain's DNS

I'm pretty sure it's possible, I just don't exactly know how to; but I was wondering how I could view/test my website(s) without changing the DNS? I'm migrating my websites from provider X (server ...
0
votes
2answers
279 views

getting started with apache mod_rewrite on a virtual host [duplicate]

hey SO I am attempting to use apache's mod_rewrite module to do some basic rewrting of url on my website so they become a little more seo friendly basically I have a virtual host file that look ...
0
votes
5answers
658 views

Reject HTTPS connections to other hostnames

I have an SSL certificate installed and working for my website, however, 5 different domains all point at the same host, and if a user is directed to https://(the other four) they get a big angry red ...
0
votes
1answer
494 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 ...
0
votes
2answers
2k views

Cant get access to phpmyadmin with nginx under debian “No input file specified.”

I've installed Nginx, php-fpm, mysql and phpmyadmin.. When I type myserver.com I see "Welcome to nginx!". But when I type myserver.com/phpmyadmin, I got : "No input file specified. ". I know it's ...
0
votes
1answer
144 views

How to make undefined host go to default Page in apache2 virtual hosts

I am using named Virtual hosts NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin ramesh@thegeekstuff.com DocumentRoot "/usr/local/apache2/docs/thegeekstuff" ServerName ...
0
votes
2answers
543 views

VirtualHost won't allow two domains

This is my VirtualHost file NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/html/backendtwo/ ServerName www.designer-school.com </VirtualHost> <VirtualHost *:80> ...
0
votes
2answers
1k views

Apache doesn't parse PHP on VHOST while it works on default

I set up a Debian 6 VPS to host couple of small sites and it works beautifully for default one. Next i created new user and copy/paste default vhost file and enabled it with a2ensite and only ...
0
votes
1answer
300 views

Assigning two IPs to one NIC in CentOS

I have been following this method described here: http://linuxwave.blogspot.com/2010/01/setting-virtual-ip-in-centos.html To assign a virtual IP to one NIC. Basically I copied ifcfg-eth0 and makde ...
0
votes
3answers
78 views

Request of a domain with no virtualhost in apache ends to default virtualhost

If I ask Apache for domain.com that has no Virtual Host setup in Apache configuration, Apache will show the default Virtual Host. How can I prevent this from happening or simply drop the connection?
0
votes
1answer
257 views

Apache is serving from the first virtualhost for all subdomains and main domain

Objective: To have multiple sub-domains working successfully with a wildcard SSL certificate. The sub domains do not have separate dedicated cpanel account, and hence share the same dedicated IP ...
0
votes
3answers
262 views

What is the purpose of a Physical Standalone Server

What is the purpose of a physical standalone server Vs a server which hosts several logical servers? I am from a development background and constantly build sever client - server systems. However, I ...
0
votes
1answer
634 views

Apache 2 Symbolic link not allowed or link target not accessible

While the title of this question matches an already asked question, in my case I already set Options +FollowSymLinks. The setup is the following: my hosting setup includes htdocs/ directory that is ...
0
votes
6answers
13k views

Apache redirect from http to https not working

I have the following conf files: file1: NameVirtualHost 123.45.67.890:80 <VirtualHost 123.45.67.890:80> ServerName example.com RedirectPermanent / https://example.com/ # ...
0
votes
1answer
147 views

Set up Apache2 to server multiple directories on the same domain based on URL path

I want to host two different sites on the same IP, same server, and same domain using Apache2 on Ubuntu Linux. Let's say I have the following directories which represent sites that will serve content: ...
0
votes
2answers
109 views

Unable to get mod_rewrite to stop processing

This is linked to Rewriting subdomain.domain.com when other 'subdomains' exist I need mod_rewrite to 'stop' processing, but it seems to continue on. On my registrar, I've set A records as: ...