Typically a default apache (ubuntu/debian) or httpd (rocky linux) default website location is here: \var\www\html

On my Ubuntu install, it is in fact located here: \var\www\html
If you move to that directory like this:
cd /   (to root)
then
cd /var/www/html
You see a file called index.html
You can see display of the index.html file using the 'cat' command like this: cat index.html

You can edit the file using vi, which is a text editing utility. very tricky to learn but essential...worth learning because it is on
most every linux and freebsd os.
nano and pico are also available, but may not be installed by default. Read about them. I'm liking nano more and more.

Not sure why you would want to change the location of the html files, but as noted in other posts you can change the DocumentRoot
of the default. And changing things is really what it's all about.

Until you get comfortable with where it's at, I would leave it. But a couple things you'll need to be aware of is if you
create a new location, I suggest you create it under /var/www/.
For example: /var/www/test
You'll need to assign ownership of the directoy to the apache user. Please read as much as you can about this topic.

You should probably read about virtual hosts if you plan on hosting more than one website. go to: /etc/apache2/sites-available and look at 000-default.conf. There is a DocumentRoot in that file. All these pieces will help you understand how things work.

Regarding changing the address to 192.168.x.x  Not sure what that's all about, but if you want to change the ip address of your server thats a networking question. Some distributions have utilites to do that and some require you to edit interface files. I'm not going to
guess.

Then the www.x.co.uk part of your post.  If you are asking how to have a browser enter that domain and be directed to your website,
thats a DNS setting typically done with your domain hosting services.

Anyway, keep at it






On 10/18/2025 1:56 PM, Mathew Butterfield wrote:
Hi there can you tell me how do I change where websites are stored and how to change the address from 192.168.x.x to www.x.co.uk <http://www.x.co.uk/> If you can tel me step by step please.

Thank you
Mathew

Reply via email to