SJamG
24th November 2007, 19:16
Hi There,
I am having a problem with my Ubuntu/Apache2 config.
It loads the page, but displays the IP address instead of URL. I haev edited my virtual hosts file, but it has had no effect.
Anyone offer any suggestions?
Thanks for the help
Stuart.
Here is my Virtual Hosts file :
root@www:/# cd etc
root@www:/etc# cd apache2
root@www:/etc/apache2# cd sites-available
root@www:/etc/apache2/sites-available# ls
default mailman.conf
root@www:/etc/apache2/sites-available# vi default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.accommodate-edinburgh.com
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
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
I am having a problem with my Ubuntu/Apache2 config.
It loads the page, but displays the IP address instead of URL. I haev edited my virtual hosts file, but it has had no effect.
Anyone offer any suggestions?
Thanks for the help
Stuart.
Here is my Virtual Hosts file :
root@www:/# cd etc
root@www:/etc# cd apache2
root@www:/etc/apache2# cd sites-available
root@www:/etc/apache2/sites-available# ls
default mailman.conf
root@www:/etc/apache2/sites-available# vi default
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.accommodate-edinburgh.com
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
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