The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AliasMatch question

Discussion in 'General Discussion' started by ozzieonline, Jan 16, 2013.

  1. ozzieonline

    ozzieonline Well-Known Member

    Joined:
    Dec 20, 2012
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi everyone,

    I would like to use a HTTP_HOST variable in AliasMatch

    Instead of this:

    AliasMatch ^/content/domain/(.*)$ /home/ozzieonline/public_html/content/domain/www.ozzieonline.com/$1

    I want to do this:

    AliasMatch ^/content/domain/(.*)$ /home/ozzieonline/public_html/content/domain/%{HTTP_HOST}/$1

    However, I can't get it to work. Does anyone know how to fix it?
     
Loading...

Share This Page