Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: how to set up my domain on my server |
|
Author |
|
casserlyprogramming
Joined: 12 Aug 2010 Posts: 1
|
Posted: Thu 12 Aug '10 17:24 Post subject: how to set up my domain on my server |
|
|
so ive got into apache2 on ubuntu and am enjoying learning. i have a question, my site is available if i go to http://192.xxx.x.xx/casserlyman.co.uk, what i want is to get it to go to the same site if i type in www.casserlyman.co.uk, which is currently registered at 123-reg.
where do i go from here? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 16 Aug '10 14:37 Post subject: |
|
|
You have to create a vhost with the path to that dicretory.
Code: |
NameVirtualHost *:80
<Virtualhost *:80>
Servername casserlyman.co.uk
ServerAlias www.casserlyman.co.uk
DocumentRoot /www/domain
<Directory /www/doamin>
Options All
Allowoverride none
Order Allow, deny
Allow from all
</Directoy>
</Virtualhost>
|
You might take a look at http://httpd.apache.org/docs/2.2/vhosts/name-based.html
if you still have a question please ask again. |
|
Back to top |
|
|
|
|
|
|