• 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.

Wildcard DNS, subdomain, however no shell access to the conf dir

J

JHB Oosterlaar

Guest
Hi,

For a project we need to use subdomains. In the default situation one can simple use the subdomain feature that comes with Plesk to create a physical subdomain. However, we are planning to write a dynamic application that offers the same functionality to each subdomain, but in which the content depends on the subdomain used.

This has led us to the obvious conclusion that a virtual subdomain is preferable. However, I have no idea how to achieve this, since every document on this subject instructs to edit a file in the conf directory and I can not access the directory due to restricted permissions.

Is there another way to complete the wildcard DNS configuration using only the Plesk GUI? (I already have added a wildcard A DNS record.)

------------------------
To get the full idea, this is the design:

1. Visitor visits one of the virtual subdomains.
2. The visitor is internally redirected to the domain itself through the wildcard DNS configuration.
3. Based on a mod_rewrite configuration, requests to the domain are redirected to a dispatcher script that is part of our application.
4. The dispatcher script extracts the subdomain that was requested and then invokes further logic that makes decisions based on the subdomain.
-----------------------

Thanks in advance!

Kind regards,

Jeroen
 
As long as your provider permits the use of .htaccess apache directives, you should be able to utilize mod_rewrite within it on the main httpdocs folder. This would allow you to enable the parsing script.
 
I've got the same issue. I basicly want a catch-all for subdomains, which lead the visistor to the httpdocs-dir.
When I try xxx.domain.nl I'm being redirected to an Apache test-page, instead of the httpdocs directory.

Normally this would be a "domain alias", but I can't create an alias with the same domainname.
I tried to uncheck WWW at "Domain administration", but that only disables the www-alias, instead of making an catch-all wildcard-subdomain.

Any bright ideas?
 
Back
Top