-ronin-
July 12th, 2008, 01:12 PM
I've installed a forum on our Ubuntu 8.04 fileserver. When you type into your browser http://<fileserverIP#>/forum, you get to the forum just fine. But I don't want people to have to go around remembering IP#s. I want them to simply type forum.mysite.org and get into it.
I created a file called forum in /etc/apache2/sites-available
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName forum.mysite.org
DocumentRoot /var/www/forum
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/forum>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/forum-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
Then in /etc/apache2/sites-enabled I ran the command a2ensite forum to create the symlink. After that I restarted apache. But whenever I try navigating to forum.mysite.org I get the following error message, instead:
The requested URL could not be retrieved
While trying to retrieve the URL: http://forum.mysite.org/
The following error was encountered:
Unable to determine IP address from host name for forum.mysite.org
The dnsserver returned:
Name Error: The domain name does not exist.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.
I created a file called forum in /etc/apache2/sites-available
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName forum.mysite.org
DocumentRoot /var/www/forum
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/forum>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/forum-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
Then in /etc/apache2/sites-enabled I ran the command a2ensite forum to create the symlink. After that I restarted apache. But whenever I try navigating to forum.mysite.org I get the following error message, instead:
The requested URL could not be retrieved
While trying to retrieve the URL: http://forum.mysite.org/
The following error was encountered:
Unable to determine IP address from host name for forum.mysite.org
The dnsserver returned:
Name Error: The domain name does not exist.
This means that:
The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.