LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-14-2007, 03:56 PM   #1
70mas
Member
 
Registered: Sep 2006
Location: Slovakia
Distribution: Debian, Gentoo
Posts: 34

Rep: Reputation: 15
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.
 
Old 07-15-2007, 11:59 PM   #2
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
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/
 
Old 07-16-2007, 03:25 AM   #3
70mas
Member
 
Registered: Sep 2006
Location: Slovakia
Distribution: Debian, Gentoo
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 07-16-2007, 03:29 AM   #4
jusupov
LQ Newbie
 
Registered: Apr 2007
Distribution: ubuntu
Posts: 4

Rep: Reputation: 0
I recommend you to install come kind of Control Panel. For example ISPConfig.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Hosts in apache2-2.2.0-21 not working Stuart Morrow Linux - Server 2 10-14-2006 03:59 AM
Apache2 - need help with virtual hosts bioalchemist Linux - Software 5 08-11-2006 02:24 PM
Subdomains on Apache2 with virtual hosts - how? <Ol>Origy Linux - Networking 2 08-18-2005 06:53 AM
Apache2, SSL, 2 Virtual Hosts franticbob Linux - Software 0 04-07-2004 10:48 PM
apache2 virtual hosts viniosity Linux - Software 4 02-07-2004 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration