1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Globally define virtual subdomains

Discussion in 'Plesk for Linux - 8.x and Older' started by cyberbrain, Mar 18, 2008.

  1. cyberbrain

    cyberbrain Guest

    0
     
    Is it possible to define global subdomains (just like the webmail.*.tld subdomain) which work for all domains on a server?

    For example, i want to add editor.*.tld to provide my users with an webeditor. This editor is for example located in /var/editor/html

    Thanks in advance.

    CyberBrain
     
  2. Satoriya

    Satoriya Guest

    0
     
    You can try to create a new 'test.conf' inside /etc/httpd/conf.d/ and describe there Virtual host for your subdomain 'editor.*.tld'.
    Restart Apache. After that this file should be included by /etc/httpd/conf/httpd.conf as it is defined there:
    # grep Include /etc/httpd/conf/httpd.conf
    Include conf.d/*.conf
     
  3. cyberbrain

    cyberbrain Guest

    0
     
    Thanks for your reply, I'll give it a try. Can I use a wildcard for the tld also? (e.g. editor.*.*)
     
  4. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    Something like this - not exactly this, but sometihng like this

    PHP:
    <VirtualHost your.ip.goes.here:80 >
            
    DocumentRoot /root/of/site
            Alias 
    /any aliases/
            
    ServerName editor
            ServerAlias editor
    .*
            
    UseCanonicalName Off
     
    </VirtualHost>
    in /etc/httpd/conf.d/editor.conf
     
Loading...