• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

subdomain setup

subdomains

I am in process of changing server hosts ... the current server host is RHEL running Ensim control panel, and my new server is RHEL running Plesk. On my current server, my subdomains are accessible via http://domain/subdomain as long as I do not have folder subdomain in docroot folder. I am not sure if this was special setup they assisted in, but now all my links to a very large website are coded that way, and it will be a lot of work to find and replace them all.
I am hoping to set that up on new server as well.
Thanks for quick reply,
Jesse
 
Hello,


I know how to do this, if you have not finished this yet let me know.


Feel free to contact me for issues and contracts at [email protected]

Thanks,
Bandurao.
System Administrator.
 
Subdomain Help

Yes, I have not set this up yet and would like any help you could provide.
Do you want me to contact you directly, or will you just post here ??
Thanks again,
Jesse
 
Path2U - You can do this in the domain's vhost.conf file:

Code:
Alias   /plesksub   /home/httpd/vhosts/example.com/subdomains/plesksub/httpdocs
On newer fresh Plesk installs, the domain's root may be /var/www/vhosts/...

Then make sure you have your site files in the httpdocs directory and you should be good to go.

Notes: By default, Plesk does not automatically create the vhost.conf file, so you may have to create it. Then run the following command:

/usr/local/psa/admin/bin/websrvmng -u --vhost-name=example.com

Then restart apache manually.

This also assumes you create your subdomains using the Plesk GUI, not a 3rd party utility such as 4PSA's utilities (which stores subdomains in a different location.
 
subdomains

I have created all my subdomains with the Plesk control panel and they are in the default ... /var/www/vhosts/domain.com/subdomains/subdomain/httpdocs
If I understand correctly ... I run this command:
/usr/local/psa/admin/bin/websrvmng -u --vhost-name=example.com
to generate a vhost.conf file if it does not already exist.
Then I add the following line to the vhost.conf:
Alias /plesksub /home/httpd/vhosts/example.com/subdomains/plesksub/httpdocs
Just making sure I understand, as I am not yet very familiar with Plesk or these setup procedures.
Thanks a ton,
Jesse
 
Other way around. First you must create the file and put the Alias statement into it, then run the websrvmng command which will integrate the changes in the vhost.conf file into the domain's apache config files. Then restart Apache service.
 
Can I have your chat ID so that I can tell you how to do this, live.
 
Back
Top