Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Location
    Northeast, USA
    Posts
    11

    * Webmin Apache Help?

    Hi,

    I've got Webmin 1.380 installed and working on a CentOS 4.5 VPS - everything seems to be good and it seems to be the solution I've been looking for.

    But I'm having some trouble getting sites hosted correctly. After some tinkering and reading the Apache documentation on name-based virtual hosts, I realized that it was just easier to edit the httpd.conf file manually rather than deal with Webmin's interface for adding a bunch of domains quickly.

    I'm not after anything fancy here at all - I'm adding 'domain1.com' (for example) to Apache using something like:
    Code:
    NameVirtualHost * 
    <VirtualHost my.vps.ip.address:*>
    ServerName www.domain1.com
    DocumentRoot /home/user1/domain1.com
    </VirtualHost>
    However, when I go to add domain2.com using basically the same block of code (just changing the server name and document root to another folder), that domain2.com resolves to the stuff in domain1.com's folder.

    Probably one of those little things I'm just not seeing, but I really can't seem to figure this out.

    Any ideas?
    Last edited by jpaolini; 12-14-2007 at 10:44 PM. Reason: Typo.
    Happily Hosted With: 1and1 (Unix Shared & Windows VPS), ServInt VPS.

  2. #2
    Join Date
    Jul 2007
    Location
    Northeast, USA
    Posts
    11
    Respectful bump.
    Happily Hosted With: 1and1 (Unix Shared & Windows VPS), ServInt VPS.

  3. #3
    Join Date
    Mar 2001
    Location
    Denver, CO
    Posts
    43
    Not sure if it will help but you may want to try:

    <VirtualHost my.vps.ip.address:*>
    ServerName domain1.com
    ServerAlias www.domain1.com
    DocumentRoot /home/user1/domain1.com
    </VirtualHost>
    Peakhost.com Hosting
    Quality hosting since 2001
    http://peakhost.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •