--- In [email protected], Robert C Wittig <[EMAIL PROTECTED]> wrote: > > brucetcampbell wrote: > > Greetings Everybody, > > > > I am a newby to Linux and I hope someone can help or steer me in the > > right direction. > > > > I would like to setup a web server. I have Ubuntu installed on a > > spare computer and apache is installed. ( I can switch to a > > different distro if it is preferable) > > > > How do I setup webpages? I believe the instructions said to setup my > > webpages under \www. I have reviewed that directory and I see the > > current index.html. However I can not access it. It opens when I go > > to localhost. I thought I could simply create a new index and copy > > and paste. No luck. How do I access and modify the directory? > > > > How do I add a new webpage or site. I am not trying to establish a > > fully fledged server that will host multiple domains. I would like > > to setup a simple webserver/fileserver that I can access for my own > > purposes. I intended to open a port on my router and direct it to > > the Linux webserver. essentially creating a new index.html page and > > that page would serve as my directory to other pages or files. > > > > Any suggestions/advice would be greatly appreciated > > > > Bruce > > > > > > I don't know anything about Ubuntu, but I have two web/mailservers up > and running, using OpenBSD 3.9 (similar to Linux, which I run on the > desktop). > > First, you will need either a static IP address for the website, if you > want the world to see it, or you will need to subscribe to a service > that will permit you to 'cheat', using a dynamic IP address and their > service... but your ISP might not be amused, if they catch you. >
I intended to use my dynamic IP with a service. > You might also want a domain name, unless you plan on running just the > bare IP addy. > > Then you will need web server software running on your machine... Apache > is the most popular... apache.org I have apache installed and it appears to be running properly. I get the window that says if you see this Apache is running. > > If you don't have the man page installed, you probably do not have > apache installed... 'apachectl' is the interface for starting, stopping, > etc, if it is installed, you already have apache installed. > > Where the web documents go is determined by where you decide to place > them, or where Apache places them if you let it default. > > On my machines, web docs are in /var/www/htdocs > This is the part where I am a little confused. When I played around with it, I was unable to access the directories. Your web docs are in htdocs. I assume that if your domain was www.yourdomain.com, then hits would go directly to an index file in htdocs? Is that correct? > I suggest that you do some serious reading on security before you run a > server that is exposed to the Internet, with publicly accessible ports. > > Not a day goes by when I don't see at least one attempted crack on my > servers, and usually the numbers are much higher than that... in the > hundreds, counting ssh bruteforce attempts. > > I understand the risks involved. And I will beef up on security and a firewall. Basically I am trying to learn some of this stuff and I find the best way to learn is by doing. I appreciate the guidance. > > -- > -wittig http://www.robertwittig.com/ > . http://robertwittig.net/ > To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/LINUX_Newbies/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/LINUX_Newbies/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
