0
votes
2answers
63 views

Apache Virtual Host not working on .com domain

I have got a strange problem. I have two domains: mysite.co.uk and mysite.com, which need to point to the same directory on my server. The VHost for mysite.co.uk works perfectly. However, mysite.com ...
0
votes
2answers
148 views

setting up a vhost alias with a wildcard for domain and document root - doc root not parsed correctly

I only have a fuzzy idea of the correct terminology to use in this question so please feel free to help me by clarifying it. I have a vhost setup. The idea is that I want a wildcard to route all ...
0
votes
1answer
143 views

Multiple domains on same virtual hosts in Apache

I'm working on an application for my clients that allows them to set up small landing pages for their campaigns. I have a set of templates and views for adding text, photos etc to the templates. ...
0
votes
0answers
227 views

virtual hosts on lighttpd can't load

Thats what I did: Added following code to lighttpd.conf $HTTP["host"] =~ "(^|\.)test\.com$" { server.document-root = "/home/test" } created /home/test Restarted Lighttpd but it doesn't load ...
0
votes
1answer
418 views

Apache returns 403 Forbidden for alternative port vhost

I'm having an issue getting vhosts to work on Apache 2.2, Debian 6. I have two VirtualHosts, one on port 80 and one on port 8888. The port 80 one has been created automatically by DirectAdmin, the ...
2
votes
0answers
129 views

Include virtual host for all subdomains

I'm using the below to set a client env variable which my system requires. SetEnvIf HOST "^(\w+).domain.com" CLIENT_ID=$1 UseCanonicalName Off VirtualDocumentRoot /home/user/clients/%-3/ I'm ...
0
votes
1answer
324 views

Wildcard vhost subdomains with 301 redirect

At the moment I create a .htaccess file which redirects non-existent sub domains to the root URL. E.g <VirtualHost *:80> ServerAdmin www@example.co.uk ServerName example.co.uk ...
1
vote
2answers
6k views

Apache virtualhost permission denied with several different DocumentRoots tried. What should I try next?

I have a self compiled version of Apache 2 running under Mac OS X Leopard. It's a default install at /usr/local/apache2 and work fine. Today I wanted to add a virtual host so I could access a ...