Discussion in 'Install/Configuration' started by xinn, Dec 3, 2005.

  1. xinn

    xinn New Member

    so far ive been setting up different vhosts for different subdomains. In near future, i will have to create 100+ small pages in one domain but on different subdomains. Here is my question. Is this possible to create one vhost to handle these subdomains? The rule should be: : /home/domain/www/ /home/domain/www/sub1/ /home/domain/www/sub2/

  2. mistwang

    mistwang LiteSpeed Staff

  3. xinn

    xinn New Member

    Simple rules means a lot of work for me ;)
    I tried some configurations mentioned on this site... But they dont work for me..

    This one would be ideal for me:

    Any ideas how to force it to work? ;)
  4. mistwang

    mistwang LiteSpeed Staff

    There is a bug in rewritemap will be fixed in next release, but you don't need to use the lowercase map, as the %{SERVER_NAME} has been converted to lowercase by LSWS already, so you can try:

    RewriteCond %{SERVER_NAME} !^www\.us\.pl$
    RewriteCond %{SERVER_NAME} ^(.*)\.us\.pl$
    RewriteRule ^/(.*)$  /home/uspl/public_html/%1/$1
    Set "Rewrite Log level" to "9" and check the error log to debug those rules.
  5. xinn

    xinn New Member


    thank you for your answer Goerge,

    the rules which you wrote almost fits my needs, there is just small *bug*,
    when you access it searchs for files in:
    /home/user/public_html/www.sub not in /home/user/public_html/sub

    This rule works perfect ( maybe someone other will use it in future - this is why i post it here ):

    Thank you for your help Mistwang,

    Best Regards

Share This Page