I want to use my domain to access servers (Linux, Apache) that I set up in VMware Workstation 12 Player on Windows.

Asked 2 years ago, Updated 2 years ago, 128 views

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.

linux apache vmware

2022-09-30 17:26

1 Answers

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).


2022-09-30 17:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.