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

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