• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Globally define virtual subdomains

C

cyberbrain

Guest
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
 
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
 
Thanks for your reply, I'll give it a try. Can I use a wildcard for the tld also? (e.g. editor.*.*)
 
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
 
Back
Top