I’ll like to map a subdomain to an IP address, so that the url is accessed by the IP address only. How do i do this?
Thanks
I’ll like to map a subdomain to an IP address, so that the url is accessed by the IP address only. How do i do this?
Thanks
Usually it goes something like this
<VirtualHost my.subdomain.com:80>
order allow,deny
allow from 1.2.3.4
deny from all
# etc
</VirtualHost>
Or it is Order deny,allow
. I never really got the logic of the order you need to put those in, and trail and error works fine for just two possibilities
You can also put that in your .htaccess if you like, instead of in the vhost config (in case you don’t have access to that)
order allow,deny
allow from 1.2.3.4
deny from all
Thanks will give it atry