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)

2
votes
1answer
313 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
786 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
693 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
10k 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
135 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
1answer
536 views

VirtualHost ignores ServerName and ServerAlias

I'm trying to redirect all the traffic from .se to .com but for some reason the VirtualHost ignores the ServerName and ServerAlias that I define. <VirtualHost *:80> ServerName ...
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
414 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
985 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
103 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
604 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
333 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
203 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
391 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
903 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 ...
1
vote
0answers
809 views

Apache: VirtualHost *:80 — mixing * ports and non-* ports with a NameVirtualHost address is not supported

when i add the line below to /etc/apache2/apache2.conf I get the error belower when i restart apache: Include /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-vhosts.conf [Mon Jun 14 ...
1
vote
1answer
677 views

Virtualmin: Automatically create SSL based website with a shared SSL wildcard cert?

I managed to configure this very nicely under cPanel/WHM, but I am having trouble configuring it under Virtualmin: when I create a new Virtual Server in Virtualmin, I want it to automatically create ...
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
564 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
550 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
248 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
598 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
469 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
122 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
541 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
293 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
1answer
247 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
220 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
624 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
10k 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
140 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
106 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: ...
0
votes
1answer
175 views

Rewriting subdomain.domain.com when other 'subdomains' exist

My httpd.conf looks like this: NameVirtualHost 12.34.56.78:80 <VirtualHost 12.34.56.78:80> DocumentRoot /var/www/html/site ServerName www.example.com <IfModule mod_rewrite.c> ...
0
votes
1answer
556 views

Edit vhost port in plesk 10.3

Someone knows how can I change the vhost listen port in Plesk 10.3 on ubuntu server ? I can change the apache listen port with this command line : mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D psa ...
0
votes
1answer
701 views

Redirect port / port 10000 to https apache

I have been reading around and trying different configurations to get a request to my server on port 10000 to redirect a http to a https request. For some reason I can't figure out how to make it ...
0
votes
2answers
347 views

Apache: Multiple Virtual Hosts w/ SSL Certificates?

I have an Ubuntu 11.04 Server with multiple Virtual Hosts running on a shared IP. Is it possible to have two (different) SSL certificates for each site? I remember hearing something about you only ...
0
votes
1answer
258 views

How to setup 2 URLs pointing to same location in Apache for Rails

I want to point 2 URLs to the same rails app. Seems like it would be easy but it's not working! The existing setup looks like this: <VirtualHost *:80> DocumentRoot /home/some/path ...