LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Virtual hosts on apache2 (http://www.linuxquestions.org/questions/linux-server-73/virtual-hosts-on-apache2-569353/)

70mas 07-14-2007 02:56 PM

Virtual hosts on apache2
 
Hello.

I am setting up a little webhosting company and I came to a problem

I want to set up some rules with this order of precedence:

1. setup.* => /var/www/hosting/setup/
2. mail.* => /var/www/hosting/webmail/
3. subdomain.domain.tld => /var/www/hosting/domain.tld/subdomain/
4. anything else => /var/www/hosting/home/

I have been trying a lot but didnt came to a solution...

Pls. can u help me?

Thanx.

p_s_shah 07-15-2007 10:59 PM

I am not getting anything from the description you provided.
Please tell us what exactly you mean by
Quote:

I want to set up some rules with this order of precedence:

1. setup.* => /var/www/hosting/setup/
2. mail.* => /var/www/hosting/webmail/
3. subdomain.domain.tld => /var/www/hosting/domain.tld/subdomain/
4. anything else => /var/www/hosting/home/

70mas 07-16-2007 02:25 AM

I have already solved this by setting the NameVirtualHost parameter, so the virtual hosts can be loaded in order of their names in the vhosts.d directory.

jusupov 07-16-2007 02:29 AM

I recommend you to install come kind of Control Panel. For example ISPConfig.


All times are GMT -5. The time now is 09:06 AM.