• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Subdomain best practices

  • Thread starter michaelespinosa
  • Start date
M

michaelespinosa

Guest
What is the best way to have a subdomain my.example.com serve the files from example.com/my? I don't see anything out of the box in plesk.
 
I do not understand the main purpose of this relocation, but seems default location in /var/www/vhosts/domain.tld/subdomains/sub/httpdocs is hardcoded. You can change location of document root for subdomain in /var/www/vhosts/domain.tld/conf/httpd.include but it will be overwritten by Plesk.
 
The main purpose is for website optimization and organization. I want to pull all of my img, css, js,... files from from this subdomain the I don't get blocking from trying to download everything from the same domain. I had tried the method you suggested and still might stick with that, but it doesn't handle any dynamic files (php). If I visit a .php file the browser automatically downloads it. So just to clarify, your suggested method is the only hacky ("but it will be overwritten by Plesk") way to to point a subdomain to folder in the primary domain?

Thanks for the help.
 
I can't recommend you this method because as I wrote before all your changes will be overwritten by websrvmng when Plesk will perform any domain related operation.
 
What can you recommend?

Thanks

I can't recommend anything because it is impossible now. I can suggest you just use directory structure offered by Parallels. As I know we have already submitted feature request for possibility subdomains location replacing but I have no any ETA when it will be implemented.
 
Back
Top