initial setup issues with Apache2

i have an issue with the LAMP server i set up under Ubuntu 9.10.

I followed the beginners guide on how to setup apache in Ubuntu, but the problem is that the site is only accessable when i drop the www. prefix. ie i can view the site on mealies.co.uk

When i type www.mealies.co.uk i just get the template apache It Works! page.

How can i get the www.mealies.co.uk url to view the site?

Thanks

Andrew

2 Replies

Right below

ServerName mealies.co.uk

add

ServerAlias www.mealies.co.uk

Hi rsk

edit: It works after i restarted apache

Thanks

Andrew

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct