Web / FTP Server Help
Hi
I've looked around but as I'm quite new to all this, nothing seems to make much sense. So I will put what I've done, what I want and whats happening. Any help is greatly appreciated! I installed apache2 and edited the conf file to point to /root/smsfrancis/ in two places and changed another setting to All - following a website tutorial. Went to http://localhost/ and saw the correct apache screen. Put files into this from my website and tried again, it now lists the files of my website. I signed up to www.dyndns.org and got the dynamic dns smsfrancis.homeftp.net and changed my router settings to forward the ports for http and ftp onto the network ip of the computer (192.168.0.3). The trouble is that I can not get to my webpage using either the dyndns address or my ip address, both lead me to the routerlogin page (192.168.0.1). Which is great if I want to edit my router from somewhere else... but isnt exactly what I wanted. I want to be able to host my website off of this computer, what do i need to change to make it use the right files and display my website? Also, I registered the domain www.smsfrancis.co.uk via 123-hosting.co.uk and the package has run out recently and I dnt want to pay for another year of hosting. How do I then get the www.smsfrancis.co.uk name to connect to the files on my computer and serve them out? Final step is that I want to assign a folder to ftp so that I can put files in here and people can access them for download. How? I'm using the latest Slackware version and have used the latest apache and gFTP so far. |
Quote:
Quote:
Quote:
cheers :) |
Re: Web / FTP Server Help
Quote:
Quote:
Quote:
|
Thank you for your replies.
I guess I am pretty stumped on the router setup. Last night I set up a working FTP server on my gf's computer at her home using this same method of dyndns and port forwarding. Her router is the same (both Netgear) apart from it being for NTL and mine is for BT. On hers, it clearly stated "Port forwarding" in the menu but on my model (which looks identical from the outside), you go into Firewall Rules and then "Inbound Services" which I've set in a similar way: Service: HTTP(TCP:80) ACtion: Allow always Send to LAN Server: 192.168.0.3 Log: Always There is also an Outbound Services section that I hadnt set until just a moment ago and now has the same settings as Inbound. Yet still when I go to http://smsfrancis.homeftp.net it takes me to the router login page (192.168.0.1) :scratch: Dyndns is being updated from the router as there is a Dynamic DNS menu option: Service Provider: www.DynDNS.org Host Name: smsfrancis.homeftp.net <username/password also provided here> My router is a Netgear Wireless ADSL Firewall Router DG834G with the latest firmware and is pretty new itself anyway. Any help on what I'm missing? As an aside, I changed the file name to .html and it appears perfectly on http://192.168.0.3 :) So will have to do some editing of the files in Dreamweaver or Notepad.... And the tip to just use HTTP hadnt actually crossed my mind for some reason even though I'm often asked whether I want to download via HTTP or FTP! :o Though wouldnt I want to secure it more thoroughly with usernames and the like with FTP? |
Quote:
Quote:
|
It works for you how? Takes you to my website or to my router login?
|
I see your Website.
|
I see it too.... nice geckos :p
|
Quote:
192.168.0.1 smsfrancis.homeftp.net and that is what is causing YOUR computer to go to your router admin instead of the website. If that is indeed the case, remove that line from your hosts file. Cheers. |
Well, that IS strange! Glad you can all see it, and that my new web server was actually serving web pages last night! :)
But sorry I dont get "host file", where exactly am I going to change this? I dnt remember setting anything to that... so pls point me in the right direction! |
Another question, are there any tools for administrating the website? Such as seeing who visits it and things like this, loading times, etc, anything useful?
I've only got this thing up as a play around and to save some money on hosting while learning Linux.. so any new things are appreciated. |
Quote:
Quote:
|
Just looked in /etc/hosts and the only uncommented lines are:
127.0.0.1 localhost 127.0.0.1 linux.domain linux This isnt what you said there might be in this file causing it to show me the wrong page from my own pc, so any other thoughts? Thanks for the info on scripts, I guess php/perl will be the next thing I learn then.. at least in some basic form of how to put it on the server. I also came across awstats in my own searches, any one have any experience of this? http://awstats.sourceforge.net |
I've added "BBClone" to count hits and other stats, but am having some trouble with Apache. Wondered if you could help!
I need to have a .htaccess file in the website root containing the following: Quote:
How can I configure apache to allow this file to be here without stopping the pages working? As i need it here to count pages in this part of the structure and any subfolders (it has to be at the top of the tree). P.S: The problem of not being able to access the site via the web on http://smsfrancis.homeftp.org is still active and I'd really like to solve this one if you can help. |
Quote:
Cheers. |
All times are GMT -5. The time now is 07:01 AM. |