• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

Question Subdomains with Document root inside /httpdocs/

jonny512379

New Pleskian
Server operating system version
Ubuntu 22.04.3 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.55 Update #2
Hello All (new to plesk)
OS: Ubuntu 22.04.3 LTS
Product: Plesk Obsidian 18.0.55 Update #2

what i want is:
example.com with the root of /httpdocs​
sub1.example with the root of /httpdocs/sub1​
sub2.example with the root of /httpdocs/sub2
etc​
possibly also:
images.example with the root of /httpdocs/images​
js.example with the root of /httpdocs/js​
I want this as my main files/coding, includes, etc are all within /httpdocs so are easy to get relative paths too.
/sub1 will basically contain an almost identical site (well using the same code/database/etc), but with a slightly different config.php file, so that the content/search criteria will display different results

Every time i set up a subdomain (currently using a temporary domain!!!) i get "500 internal server error", even if all i have in httpdocs/sub1 is index.html (hello world, etc)

Is this something possible? or something i am doing wrong. Or will it work without the temporary domain (which is already a subdomain provided by plesk)

Thank you
Jon
 
Please check your error_log for details on the error no. 500 entry. Normally, the reason is given, too. It could be caused by a wrong .htaccess syntax.

Generally it is not such a good practice to nest domains and subdomains, because for example .htaccess settings from /httpdocs will affect all that is stored in /httpdocs/sub1, /sub2 etc.
 
Back
Top