Change the DocumentRoot in httpd.conf to /srv/http/example
and find index.php in the directory.
The IP address is assigned 192.168.160.142.
Accessible only from the host OS Windows using http://192.168.160.142.
In order to be accessible from this state on http://example.com
, we tried the following:
However, the browser says no server found.
If there is a solution, please let me know.
If you only need access from the host OS (Windows), you can add an entry to the Windows hosts file.Please check the location of the file as it is stored differently depending on the version of Windows.
192.168.160.142 hogehoge.com
The ServerName configuration in httpd.conf is only for Apache processing and will not be communicated to Windows (details omitted, but not for Apache hostname configuration).
© 2024 OneMinuteCode. All rights reserved.