• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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