The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
28 views

Password protect vhost virtual document root

I have the following setup for automatically generating subdomains/virtual document roots configured in /etc/apache2/apache2.conf (running on Debian 7.0) <VirtualHost *:80> ServerAlias * ...
3
votes
1answer
21 views

Can I use mod_cband and mod_vhost_alias together?

Basically I run a VPS and host my clients' sites on it. I have mod_vhost_alias set up to use the domain as the client's user account home folder, eg /home/www.example.com. I'd like to use mod_cband to ...
3
votes
2answers
118 views

Mass virtual hosting with Apache 2.4

I would like to use the value set by VirtualDocumentRoot in a RewriteRule. The Apache documentation says: The other thing to determine is the document root (configured with DocumentRoot and ...
0
votes
1answer
70 views

Apache Dynamic Virtual Host with SSL [duplicate]

I have the following in my httpd.conf file NameVirtualHost *:80 <IfModule mod_vhost_alias.c> <VirtualHost *:80> ServerAlias * UseCanonicalName Off LogFormat "%V %h %l %u %t ...
0
votes
0answers
72 views

Dynamic vhosts www alias — symlink vs mod_rewrite

MI have hundreds of domains, each of them added dynamically. Now I want each domain to have www.* alias, as far as I know there are two ways to achieve this: 1) Using symlinks www.domain.com → ...
1
vote
2answers
122 views

Alias or redirect or rewrite

Roundcubemail and Owncloud folders live on the document root but because of the limitations of the Roundcube OwnCloud Plug-in I have to organise the vhosts as below. $rcmail_config['owncloud_url'] ...
1
vote
0answers
81 views

Mass virtual hosting and subdomain

I'm trying to setup zero-config web-development environment: wildcard DNS plus dynamic virtual hosts. Here is my v-hosts config: NameVirtualHost *:80 <VirtualHost *:80> ServerAlias *.dev ...
0
votes
1answer
451 views

mod_vhost_alias VirtualDocumentRoot many domains

I'm sure I'm not the first person to encounter this problem, but I cannot, for the life of me, find an answer - although that could be down to not knowing what to search. I have the need to host many ...
3
votes
2answers
187 views

Dynamic Virtual Hosts In Apache with www and non-www subdomains

I don't know apache very well and I've got a problem with configure mod_vhost_alias This is my httpd.conf file: UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon <Directory ...
0
votes
1answer
139 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. ...
1
vote
0answers
87 views

mod_vhost_alias + wildcard + custom php.ini

Here's my httpd.conf thats using mod_vhost_alias. The docroot is always in /home/username/domains/domainname/public_html. <VirtualHost *:80> ServerName *.abc.com ServerAlias ...
1
vote
1answer
272 views

Override Mass Virtual Hosting for One VirtualHost

I'm not sure if that question was properly worded. Basically, I have it set up via http://httpd.apache.org/docs/2.2/vhosts/mass.html so that I only have to create a folder (such as example.test) in ...
1
vote
1answer
444 views

Apache 2.2 mod-vhost-alias with multiple document roots

I’m a beginner in working with apache and in need of your help. My task is to build a dynamic webserver (Debian 6.0.4, Apache 2.2, one public IP) which can host multiple websites and files (like ...
0
votes
1answer
297 views

Mimic VirtualDocumentRoot with mod_rewrite

In my apache setup I would like to have number of directories named after domain names that will be served based on subdomain hierarchy. For example, given existent two directories: company.com ...
2
votes
0answers
127 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 ...
1
vote
1answer
1k views

How to configure SSL with apache2/httpd mass virtual hosting using mod_vhost_alias

I have been searching quite a bit now but couldn't find any answers. I'm using httpd 2.2.15 and Centos 6.2. I have configured apache for mass virtual hosting. I.e.: UseCanonicalName off ...
1
vote
1answer
247 views

vhost redirect non exist subdomains

I have this in my vhost file which direct all sub domains which do not exist to the main www. <VirtualHost *:80> ServerName mysite.com ServerAlias *.mysite.com Redirect 301 / ...
0
votes
1answer
292 views

How does cPanel let me freely choose DocumentRoot for vhosts without restarting Apache?

To avoid Apache restart, Dynamically Configured Mass Virtual Hosting is used. But, --in this case-- Apache takes vhost configurations from directory pattern. So, I am not free to choose DocumentRoot ...
0
votes
1answer
482 views

vhost_alias_module domain.com doesn't go to www.domain.com

I'm using the configuration below to use vhost_alias_module to more easily manage my hosted setup. I want sites to be structured like the following /sites/domain.com/w/w/w/ which with the ...
1
vote
1answer
115 views

Server Name Indication (SNI)

Is it possible to use mod_vhost_alias with SNI? I know mod_vhost_alias usually works pretty late with the header (like mod_rewrite). Is this even possible?
1
vote
1answer
157 views

mod_vhsot_alias vs mod_vhost_hash_alias

I am running Ubuntu Maverick + Apache2.2 and I did some reading up on using mod_vhost_alias to serve/create subdomains on the fly. But, when I try installing it through apt, all I can find is ...
1
vote
2answers
308 views

Apache conf: how to specify subdomain in <Directory /path/to/subdomain> when using mod_vhost_alias for wildcard virtual hosts

To start with, we wanted a request to *.example.com to be handled by a corresponding /var/www/*/ directory, and we have got this working by using mod_vhost_alias with VirtualDocumentRoot, as follows: ...
0
votes
0answers
235 views

Automatic subdomains on local dev machine

I have working localhost on my Fedora 15. Directory tree look like this /var/www/html/default /var/www/html/projects /projects/foo /projects/bar /var/www/html/devel ...
3
votes
1answer
2k views

Using VirtualDocumentRoot *only* if a suitable document root exists

I'd like to set up an environment where Apache virtual hosts can be dynamically created without reloading the configuration. I can do this with mod_vhost_alias, I set up my default virtual host ...
0
votes
1answer
432 views

Using vhost_alias, can I set logs location to the current vhost?

I'm not sure my question is clear, but here is a small explication: I'm using apache mod_vhost_alias, which is great for me to create new domain easily (just create the according domain name folder) ...
1
vote
1answer
1k 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 ...
3
votes
2answers
1k views

Can Apache vhost_alias and NameVirtualHost coexist in same server / ip?

I have a development server for PHP programmers set up and runnig for some time now. The system is Debian with default Apache package: # apache2 -v Server version: Apache/2.2.9 (Debian) Server built: ...
0
votes
2answers
2k views

Apache Virtual Host with directory aliases

I'm trying to set up a dynamic virtual host in apache with a directory alias pointing to a difirent path for every domain. Here's what I'm trying to achive. Say I have 2 domains: * www.domain1.com ...
4
votes
1answer
6k views

ServerName wildcards in Apache name-based virtual hosts?

On our LAN I've set up several 'fake' TLDs in the DNS server, with the intention of using them for Apache name-based virtual hosting. I'd like to combine this with mass-virtual-hosting (i.e. ...
1
vote
1answer
364 views

mod_vhost_alias question

Is it possible that mod_vhost_alias can read several directories (For example, each users) to find the sites? Like in a hosting setup where different users can create the directories in their home ...
0
votes
2answers
346 views

mod_vhost_alias on cPanel

I have a webserver with cPanel / Webhost Manager (WHM). Now I need to install the Apache module mod_vhost_alias so I can use VirtualDocumentRoot. I've added LoadModule vhost_alias_module ...