Originally Posted by venkatraghavang
# IPaddress HostName Alias
You'll also need to have apache setup for www.mysite.whatever
In /etc/apache2 you've got two sub dir.'s, sites-available and sites-enabled. For my page I've got the following file for my no-ip.com site in /etc/apache2/sites-available/www.mysite.whatever
In /etc/apache2/sites-enabled you then have a symlink of the above file except ending with .conf You can use a2ensite to enable a site in /etc/apache2/sites-available and a2dissite to disable sites. Once I get going on the keyboard I create the links myself.
<VirtualHost *:45826> # 45826 is my port that no-ip will redirect to, you'll use port 80 for http.
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128