• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

ServerAlias :confused:

K

kklemenss

Guest
I know that this problem has been writen, i searched the forum readed everything but still i have that problem.
i have subdomain test.mydomain.com
and www.testdomain.com is pointed to my IP. In httpd.include i have like ServerAlias www.testdomain.com
And it works just fine, but when i restart apache or add new domain.. it erase that ServerAlias. I`ve readed in forum that i must create vhost.conf... i created it and puted in that file ServerAlias www.testdomain.com like i have read in faq

but still doesnt work.. can somebody help me about this problem? :confused:

thanks for your answers!
Best regards,
Klemen
 
Did you run

/usr/local/psa/admin/bin/websrvmng --reconfigure-all

after creation of the vhost.conf?
 
yes but when i do that i get in my domains the default plesk page... its not working at all
 
ok, I think its time to show your configuration files.

can you please post the content and path of the files httpd.include and vhost.conf for the domain in question?
 
First of all:

Please remove the port from the ServerAlias directive. ServerAlias should read like

ServerAlias *.smartno-litija.si smartno-litija.si


With this change - and after a restart of Apache of course - www.smartno-litija.si should display the content of www.trioserve.com. (If the vhost.conf is placed in /var/www/vhosts/trioserve.com/conf/ )
 
If you want to have being an alias for http://smartno.trioserve.com/ - which is a subdomain - you need to place the vhost.conf file in the appropriate directory, which is in this case /var/www/vhosts/trioserve.com/subdomains/smartno/conf/

(Its explained in the header comments in httpd.include where to place vhost.conf files)
 
Don't forget to run

/usr/local/psa/admin/bin/websrvmng --reconfigure-all

after placing a new vhost.conf file anywhere on the server.
 
uf thanks coko!!

i didnt read carefully the header..
it works now!!
10x!
 
Back
Top