I have a apache server running on ubuntu 10.04. i wanted to give the server a name. so i added a name called sdk in /etc/apache/sites-available/sdk with the following
VirtualHost *:80> ServerAdmin webmaster@localhost ServerName sdk.sat ServerAlias *.sdk.sat DocumentRoot /var/www <Directory /var/www> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined
Now, I can access this web address thorught the lan using its ip address 192.168.1.5. But i want it to be accessed by the server name sdk.sat. How can i do this?