1
I am using localhost subdomain.
subdomain is set by apache like this.
It works well for web browser.
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Users/web/mylist/public"
ServerName myilist.localhost
ServerAlias www.mylist.localhost
<Directory /Users/web/mylist/public>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
</VirtualHost>
But, every these approach return errors like.
curl --request GET --url http://mylist.localhost
curl --request GET --url
mylist.localhost:80
curl --request GET --url
mylist.localhost
curl: (6) Could not resolve host: myinvestlist.localhost
1AH,,, i see. It the same way as we set DNS, for external server. thank you . – whitebear – 2018-10-30T06:51:52.010