I have this web server that has the IP address xxx.xxx.xx.x, I also have a website that I want to publish, but I donβt have a domain for my site yet.
So, in my file httpd-vhosts.conf, I have this parameter:
<VirtualHost xxx.xxx.xx.x>
ServerName xxx.xxx.xx.x
DocumentRoot "C:\Sites\mysite"
</VirtualHost>
And since I donβt have a domain, I really want to use the IP address to access my site, but I tried this and it does not work. I think you need to set the server name to ServerName, as the header says.
Are there any ways to make my site publicly available through my IP address, if so, how can I do this?
source
share