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

www problem and apache rewrite rule doesn't work anymore !

regisg

Regular Pleskian
Hello,

New problem since migration to 10.0.1 :

My website is no longer accessible from the url http://[B]www[/B].munci.org => we get the plesk Web Server's Default Page !

Before, my site was accessible both with http://[B]www[/B].munci.org and http://munci.org

I note that the checkbox www has disapeared in the domain configuration of the Plesk panel

Moreover, this rewrite rule doesn't work anymore in the .htacess :
RewriteCond %{HTTP_HOST} ^www.(.+)$
RewriteRule ^(.*)$ http://%1/$1 [QSA,R=301,L]
This is very strange !!!

Finally, is it nornal that the name of the httpd.include in the conf folfer of the domain became :
/var/www/vhosts/munci.org/conf/12898969740.18212100_httpd.include ??
This name has not been changed in the subdomains (still httpd.include)

THX FOR YOUR HELP.
 
Same issue

I'm having the exact same issues since upgrading to 10.0.1...
 
solution

Hi!

Since version 10.0.0 configuration schema for WWW prefix has been changed in Parallels Plesk Panel.

Domain is available with WWW prefix (http://www.<DOMAIN NAME>) and record ServerAlias "www.<DOMAIN NAME>" is added into Apache configuration only if CNAME DNS record for "www.<DOMAIN NAME>" exists in domain's DNS zone.

So the solution is:
1) to remove A 'www' record for a domain in the database;
2) create CNAME 'www' record using plesk utility dns;
3) reconfigure webhosting configuration using websrvmng;

Please find below an example for the domain domain.com:

server:~# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2806
Server version: 5.0.51a-24+lenny4 (Debian)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select id, host, type, val from dns_recs where dns_zone_id =65;
+------+-------------------------+-------+---------------------+
| id | host | type | val |
+------+-------------------------+-------+---------------------+
| 1389 | domain.com. | NS | ns.server.com. |
| 1390 | domain.com. | A | 199.99.99.99 |
| 1391 | webmail.domain.com. | A | 199.99.99.99 |
| 1392 | domain.com. | MX | mail.server.com. |
| 1393 | ftp.domain.com. | CNAME | domain.com. |
| 1394 | 199.99.99.99 | PTR | domain.com. |
| 1395 | www.domain.com. | A | 199.99.99.99 |
| 1396 | domain.com. | NS | ns.center.com. |
| 1397 | domain.com. | NS | ns2.center.com. |
| 1398 | subdomain.domain.com. | A | 299.99.99.99 |
+------+-------------------------+-------+---------------------+
10 rows in set (0.00 sec)

mysql> delete from dns_recs where id=1395;
Query OK, 1 row affected (0.04 sec)

mysql> \q;
Bye
server:~# /usr/local/psa/bin/dns --add domain.com -cname 'www' -canonical domain.com.
SUCCESS: Creation of DNS record in Domain 'domain.com' complete.
server:~#
server:~#
server:~#
server:~# /usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.com
WARNING: You are using obsoleted option, use corresponding option of httpdmng.

There is a new command you can but I we used the old /usr/local/psa/admin/sbin/websrvmng.

So you need to go through this procedure for every domain.

This solved the problem for me. Anyway you can change the DNS on the web interface also.

Best wishes.

Sándor
 
Hi Sandor,

Thanks a lot for your great solution !

In my case, i had only to create CNAME 'www' record using plesk utility dns (2).
No need to remove A 'www' record for the domain in the database (1), neither to reconfigure webhosting configuration using websrvmng (3)...

Best regards.
 
Thank you

Your solution also worked for me. I just modified the 'A' entry to a 'CNAME' and I went through the rest of the process just to be sure it worked and so far it's done the job.

Thank you
 
Back
Top