httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Vinayak <tvina...@optonline.net>
Subject Re: Subdomains to different folder.
Date Fri, 26 Jul 2002 17:36:17 GMT
Check out mod_rewrite (http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html)... it allows
you to look at the incoming URL (and the associated environment vars) and transform the URL.

Tony
  ----- Original Message ----- 
  From: support@mayl.net 
  To: users@httpd.apache.org ; Vincent Kruger 
  Sent: Friday, July 26, 2002 1:09 PM
  Subject: Re: Subdomains to different folder.


  I personally have 15 virtual domains....7 of which are actual www.???.com's 

  Every subdomain should have its own <VirtualHost>.  THis way you can configure specific
needs
  for each virtual domain.

  In other words,

  # -------------------------------------------------------------------------------- me.co.za
  NameVirtualHost 196.1.1.12:80
  <VirtualHost 196.1.1.12:80>
    ServerAdmin hostmaster@me.co.za
    DocumentRoot "C:/wwwroot/vhosts/me.co.za"
    ServerName me.co.za
    ServerAlias www
  </VirtualHost>

  # -------------------------------------------- forum.me.co.za
  NameVirtualHost 196.1.1.12:80
  <VirtualHost 196.1.1.12:80>
    ServerAdmin hostmaster@me.co.za
    DocumentRoot "C:/wwwroot/vhosts/forum.me.co.za"
    ServerName forum.me.co.za
    ServerAlias www
  </VirtualHost>



    ----- Original Message ----- 
    From: Vincent Kruger 
    To: Apache MailingList 
    Sent: Friday, July 26, 2002 9:50 AM
    Subject: Subdomains to different folder.


    Hi....

    I have this

    NameVirtualHost 196.1.1.12:80
    <VirtualHost 196.1.1.12:80>
      ServerAdmin hostmaster@me.co.za
      DocumentRoot "C:/wwwroot/vhosts/me.co.za"
      ServerName me.co.za
      ServerAlias www
    </VirtualHost>

    Is there no way that i could put another directive inside this one that say if the url
is forum.me.co.za the document path is "C:/wwwroot/vhosts/me.co.za/form"?

    Please help, can't find help with this anywhere.

    Regards
    Vincent Kruger
    alienator@spils.com

Mime
View raw message