How can I make my Ubuntu server accessible to the internet?

I already installed applications to make my server web server. when I type the DHCP released ip address in the web browser, i can access it but all it says is “it works….etc”. I can copy files to /var/www successfuly using WINSCP but yet, i can not see any files when I connect to it using my windows machine in the browser. Secondly , I tried to forward port on my home SMC router, it only accepts local lan ip which my ubuntu server picks up internet ip from router…what should i do ? can you help please ????

Thanks,

Answer

The “It works” message comes from the default index.html in the /var/www directory. You have to edit the html file to create links to the additional files you copied from windows.
Or type the exact name of the html file in the browser.

Attribution
Source : Link , Question Author : wahid , Answer Author : user53055

Leave a Comment