• 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

redirection *.domain problem

isabelleR

New Pleskian
I have some subdomains configured in plesk, and everything is working just fine.

Now I need to redirect people that access to any other subdomain (except the ones configured in plesk) to a different default directory.

For example http://xxx.mydomain.com to /var/www/vhosts/mydomain.com/httpdocs/default.

Ive tried to create a wildcard, with the code listed bellow, but it only works if I paste it to the end of http.include, which is discarded after any other plesk change.

If I use the vhost.conf as suggested , I get errors, because the include line at http.include is inside the first and lead me to problems with the others subdomains.


<VirtualHost xxx:80>
ServerName mydomain.com:80
ServerAlias *.mydomain.com
DocumentRoot /var/www/vhosts/mydomain.com/httpdocs/default
CustomLog /var/www/vhosts/mydomain.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/mydomain.com/statistics/logs/error_log
</VirtualHost>
Is there any other way to do this ? Am I doing something wrong ?
 
Back
Top