• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Problems with vhost.conf

Peter-

Basic Pleskian
Hello

This is my first post, hopefully it's in the right section.

I got a server 2 weeks ago, everything was fine until it stopped being fine. My main problem now, after I had to remove all subscriptiond due to some error (server fault I'd say) in apache configuration(s) is that from time to time, parallels is rewriting the configuration file for all my domains, putting this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com$1 [L,R=301]
</IfModule>

Why would anyone put that in a default config file?? Is there a standard that I'm not aware of?! Where can I change this template to be able to re-use the www cname?! I found a couple instructions on how to write to vhost.conf and vhost_ssl.conf, but after reconfiguring the domain, the redirection is back there and, since the include is AFTER it, my vhost.conf configuration is basically ignored.

Thanks!
 
Hi,

just change your hosting settings for your domain as seen in the attached screenshot.
You are able to choose to rewrite all domain.tld to www.domain.tld or vice versa or to none. So www.domain.tld and domain.tld will be handled as different domains.

:)

www-domain hosting settings.png
 
Hey

Thanks for replying.

Unfortunately I don't have that option in my settings.

I went to subscriptions, selected a domain, clicked on the general tab but it isn't there.

Am I looking in the wrong place?!

Thanks!
 
Found it. It was under "scripting and security".

Thanks a lot!

I lost 2 days of my life because of this and was about to change the domainVirtualhost.php file :)
 
Last edited:
Thanks GunFood and Peter. I have been stressing with this same issue for 3 days now ( and its weekend aswell) before I got to this post.

I really have NO IDEA why I did not see this option.
 
Back
Top