10.1.1.1/r-stag
is a sub-directory. To get that to work you would create a file or folder named "r-stag" in the document root directory.
r-stag.10.1.1.1
would be a subdomain of an IP address which isn't a thing. There is no way to get that to work.
The way you have it configured right now is that the server is listening to serve requests for http://r-stag/
. That is only going to work if that local name resolves to the IP address of the server. You can make that work for your local machine for testing purposes by adding 10.1.1.1 r-stag
to your hosts file. See How to Edit Your Hosts File on Windows, Mac, or Linux
You probably want to configure the server to listen to an actual subdomain Host Name
like r-stag.example.com
where example.com
is a domain name that you control. You would add a DNS A
record with the IP address of your server for the r-stag
subdomin in the DNS zone for example.com
to get that to work.