title: How to change server name in apache
body: <p>i want to change server name in apache. i know its easy as we can make changes in apache.cnf and httpd.cnf file. But i am tired after make changes in all file. i have checked all files and configuration but its not work only repdirect to another ip worked. So how can i change servername ??</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
  ServerName xyz.com
  SSLEngine On
  SSLCertificateFile /etc/apache2/ssl/server.crt
  SSLCertificateKeyFile /etc/apache2/ssl/server.key.nopass
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Thanks for any help.</p>