D
D
dflbrhekbn2017-09-15 16:07:58
Apache HTTP Server
dflbrhekbn, 2017-09-15 16:07:58

How to make a site available from computer A to computer B (C, D, etc.) within the network?

There is a computer with the address (192.168.0.244) having on board: Ubuntu 16.04, apache2. In the /etc/apache2/sites-available folder, test.local.conf was created with the following content:
ServerAdmin [email protected]
DocumentRoot /var/www/test.local
ServerName test.local
ServerAlias ​​www.test.local
In the /etc/ folder apache2/sites-enabled created a symlink to it (I still don’t understand what a symlink is!)
There is an index.php in the www.test.local folder
In hosts, opposite 127.0.0.1, test.local www.test.local is written
After I I type 192.168.0.244/test.local on computer B in the browser, it tells me "The page cannot be found". If I type 192.168.0.244/phpmyadmin - I get into it.
A couple of weeks ago, I could easily access test.local from any computer, but something happened, but I can’t figure out what!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dflbrhekbn, 2017-09-18
@dflbrhekbn

Fixed it. In the /etc/apache2/conf-enabled folder, I created the test.local.conf file and added the following lines:

<IfModule mod_alias.c>
    Alias /test.local /var/www/test.local
</IfModule>

I reboot apache service apache2 restart
And now addressing to the address 192.168.0.244/test.local I get to my site!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question