• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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