Apache00-default.conf settings file

I am sure this is simple:

I laid out the machine and installed LAMP, and the IP is set to 10.0.0.10.

In my Windows machine, I changed the hosts file and added one entry named "rsywx_remote". Ping from my windows machine to my roaming machine is fine. Downloading "rsywx_remote" in a browser from my windows machine is fine too. Communication is not a problem.

Then I used SSH for my roaming machine and modified /etc/apache2/sites-enabled/000-default.confas follows:

<VirtualHost 127.0.0.1>
        DocumentRoot "/www/rsywx/web"
        ServerName rsywx_remote
        ServerAlias rsywx_remote

        <Directory "/www/rsywx/web">
                Options FollowSymLinks Indexes
                AllowOverride All
                Order deny,allow
                Allow from 127.0.0.1
                Deny from all
                Require all granted
        </Directory>
</VirtualHost>

Restarted my roaming Apache service, and it still points to the default page, not the one I expected.

Any clues?

+4
source share
1 answer

Try:

<VirtualHost *:80>

This will be tapped to all addresses.

+3
source

Source: https://habr.com/ru/post/1524293/


All Articles