WWW & FTP directories

acidtuch10

Registered
Question for all you UNIX and Linux GURUS ~~

I am tired of using windows for my FTP and web server, it seem to attract viruses and such. So I decided that I would use my MAC and OSX. Then I realized that I didn't know where to put my web page? Or how to change it too point to another drive or directory. Someone have some info on this?

Then it came clear that this is not the ideal situation because I have a PIII, 10 SFF - Compaq just sitting there. Decided to use this instead and install Linux mandrake 9.1. Then the same issues arose --- where is the directories to put the index.html file in?

On both OSX and Linux --- Can't I just create a FTP and WWW directory on the root of the drive – Similar to Windows config – IE………….. C:\inetpub\wwwroot or ftproot and configure either Web services or ftp to point to these directories? And if so how do I do this ???


Sorry if this seems confusing ---- had to write it fast --- and get back to work

Thank you in advance

Acidtuch10
;)
 
The following applies to the Apache web server which is common on Mac OS X and Linux.

Within the httpd.conf configuration file you find a DocumentRoot directive and an associated Directory directive. Both should point to the root of your document hierarchy. You can of course configure this as you like, i.e. the you can make any directory your DocumentRoot.

On my Mac OS X system I find the httpd.conf at:
/private/etc/httpd/httpd.conf

The DocumentRoot by default refers to:
/Library/WebServer/Documents

The Apache manual is contained within the default document hierarchy.

You can start the Apache with:
sudo apachectl start
 
Back
Top