N
N
nzeshka2014-04-20 14:52:49
linux
nzeshka, 2014-04-20 14:52:49

Web server, IP address and Joomla

I am working with my friend on a site on CMS Joomla. I have Debian on my laptop, he has a MacBook. The machines were connected through a patch cord (they registered ip addresses - I have 192.168.0.1, he has ....0.2), I installed Apache, Mysql, Php. I uploaded the site engine to /var/www/site, made the installation via the web interface, added a file about my site to /etc/apache2/site-available and made a link to /../site-enabled. My site opens only through localhost/site/index.php. Through 192.168.0.1 it gives only a test page:

It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

I understand that localhost is a loop and in /etc/hosts it simply refers to 127.0.0.1, that is, to my own laptop, but how can I make the site accessible through my IP address, that is, through 192.168.0.1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2014-04-20
@fornit1917

In the ServerName of the site's virtual host, add 192.168.0.1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question