Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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,

share|improve this question
    
Has anyone really been far even as decided to use even go want to do look more like? –  ta.speot.is Oct 30 '10 at 9:18
    
By "can not see any files" you mean it still gives you the "It works" message? –  ytg Oct 31 '10 at 15:31
add comment

2 Answers 2

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.

share|improve this answer
add comment

It is best to have servers on fixed (static) IP-addresses rather than on dynamically assigned IP-addresses which might change from one day to the next. You can use your router control panel to limit the range of addresses it hands out for DHCP and use an IP-address outside that range for your server.

For example, if your router is at 192.168.1.254 and it hands out DHCP addresses from 192.168.1.1 to 192.168.1.100, you could use 192.168.1.200 as a fixed address for your server.

Otherwise you can use specify a dynamically assigned IP-address in the forwarding rule. It might stop working one day but will be OK for a while. ifconfig -a will show you your server's current LAN IP-address.

I suggest, if you have not already done so, you read up about the security implications of making your home server accessible to botnets.

share|improve this answer
    
I thought a web server only works through static-IP addresses? Also, got a link to some place where I can find more info on this? –  Muhammad Usman Jan 9 '11 at 7:54
    
It is sensible to arrange for a static IP-address for a web-server but it is possible to provide web-service on a dynamic IP-address. There are dynamic DNS services that assign a static DNS name to a dynamic IP-address. Google for "Dynamic DNS" and for Apache, IIS, NGINX or just "Web-server". –  RedGrittyBrick Jan 9 '11 at 10:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.