• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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