How do I setup my Linode without a domain?
Any pointers on this would be really appreciated. thanks!
7 Replies
You should be able to just enable the default site and then put the files you want to serve in the directory specified as its DocumentRoot (often this is /var/www/html, but it depends on the distribution). So if you put index.php in the DocumentRoot, people would be able to access it at
@Vance:
With Apache, the first configured site will handle any requests that don't ask for an explicit host. This includes requests going to a URL using an IP address.
You should be able to just enable the default site and then put the files you want to serve in the directory specified as its DocumentRoot (often this is /var/www/html, but it depends on the distribution). So if you put index.php in the DocumentRoot, people would be able to access it at
http://12.34.56.78/index.php where they'd substitute your actual IP address.
Thanks for this. How would I enable the default site?
@Vance:
You would run a2ensite name-of-site where name-of-site is the name of the site configuration file in sites-available. If you tell us what operating system and version you are using, we can provide more specific guidance.
Ah I got it! Got it working. Thanks a lot for your help
or in linux /etc/hosts
@kekearif:
@Vance:With Apache, the first configured site will handle any requests that don't ask for an explicit host. This includes requests going to a URL using an IP address.
You should be able to just enable the default site and then put the files you want to serve in the directory specified as its DocumentRoot (often this is /var/www/html, but it depends on the distribution). So if you put index.php in the DocumentRoot, people would be able to access it at
where they'd substitute your actual IP address. http://12.34.56.78/index.phpThanks for this. How would I enable the default site?
Park you domain and then bind your apache to your server's ip address. don't forget to open the port 80 if you are listening on that port.
restart apache server and you should now see your default site.