• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved How to customize vhost.conf on plesk 12.50

tuxinside

New Pleskian
Hello, i should edit my vhost.conf for one domain on my vps. I use plesk 12.50 on centos 7.

I should add directive:

ServerAlias "*.foo.bar"

to permit wordpress to manage multisite.

I have followed many guides, but i'm not be able to edit configuration.

I have tried to edit /var/www/vhosts/foo.bar/conf/vhost.conf , but file not exist. I have created this one and i have added directive. After that i have launched:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
service httpd restart

But Plesk ignore this file.

I have even tried to add directive on Plesk > Subscription > domain.tld > Apache & Nginx Settings (http and https), but plesk still ignoring me.

How to solve? Can you help me, please?
 
Hello everyone and thank you IgorG!

I have solved my problem. In Apache & Nginx Settings (http and https) i have added again

ServerAlias *.domain.com

After that i have reboot my vps by Plesk. Now configuration works fine!

Thank you anyway for your support!
 
Back
Top