• 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!
  • 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.

adding a vhost.conf file

F

finalwebsites

Guest
Hello,

I need to add some rewrite rules to my configuration and read somewhere that I have to tell debian that there is a new vhost.conf file.

According the information from this forum I have to reconfigure the vhost, but how?
 
After creating the vhost.conf file, run this command:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domainname>

To make sure it works, check the httpd.include file, near the end of the file should be an include statement referring to the vhost.conf fle.
 
thanks this command is diff. from the last one I saw but it doesn't work:

Code:
localhost:/usr/local/psa/admin/sbin# websrvmng -u --vhost-name=mydomain.com
-bash: websrvmng: command not found
localhost:/usr/local/psa/admin/sbin#

if I enter the whole command from the root there happens nothing

this is what I have at the end of the file "httpd.include"

Include /var/www/vhosts/mydomain.com/conf/vhost.conf
 
You have the correct "include" statement at the end of the httpd.include. That's all you need. Your vhost.conf file is included.
 
Originally posted by jwdick
You have the correct "include" statement at the end of the httpd.include. That's all you need. Your vhost.conf file is included.

OK but it doesn't work :(

but thank you for the moment I found another solution.

btw. is it bad to change directives in the "httpd.include" file? like change the value for php safe mode?
 
If you make changes in the httpd.include file, Plesk will over write the changes the next time it updates.
 
Originally posted by jwdick
If you make changes in the httpd.include file, Plesk will over write the changes the next time it updates.

thats no a big problem ;)

thanks
 
Code:
localhost:/usr/local/psa/admin/sbin# websrvmng -u --vhost-name=mydomain.com
-bash: websrvmng: command not found
localhost:/usr/local/psa/admin/sbin#

Since /usr/local/psa/admin/sbin is probably not in your path you'll need to run ./websrvmng when you're in that directory. Or just run it using the absolute location.
 
Originally posted by breun
Code:
localhost:/usr/local/psa/admin/sbin# websrvmng -u --vhost-name=mydomain.com
-bash: websrvmng: command not found
localhost:/usr/local/psa/admin/sbin#

Since /usr/local/psa/admin/sbin is probably not in your path you'll need to run ./websrvmng when you're in that directory. Or just run it using the absolute location.

I tried both...
 
Thanks for the tip breun!
Your advice is still helping out even four years after you posted it!!
I was experiencing the very same error message (-bash: websrvmng: command not found)
changing the command from "websrvmng ....." to "./websrvmng ....." fixed it for me :)

i've also suggested parallels would add this to the knowledge base article concerning websrvmng... you never know...
http://kb.odin.com/5464

Greetings,
Manuel
 
Actually that KB is pretty clear and even explicitly says that you need to run admin/sbin/websrvmng in the PRODUCT_ROOT_D directory and links to the article which explains how to find what the PRODUCT_ROOT_D directory is on your system.

I don't think it makes sense to explain basic tasks (like how to execute binaries on Linux) in every KB article.
 
Back
Top