Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache File Structure Question

Status
Not open for further replies.

franksoprano

Technical User
Apr 13, 2002
249
US
Is there a recommended filestructure/layout that should be followed? I have logged in to a few different servers and see that they offer different directories such as

/htdocs
/etc
/backup

then on another server they only list:

/private_html
/public_html

I know that I am limited to certain directories because its not my server, but is there a particular file structure standard or way to be followed?

Thanks

Frank Soprano

By the way Did I make any sense? :)
 
There is no standard directory structure to speak of. Most distros set their own so they can create default servers which in most cases are ready to run out of the box. Most people stay with the default. They all do however, use a common sense directory and file structure. First they have a directory that will hold all the websites, /www/ for example. Then inside this directory is a list of directories that hold the webspace for each website. So We would have / Inside /somedomain there are usually two directories, one is for the webpages and is usually called html or htdocs. The second one is for scripts and is usually called cgi-bin or scripts. Usually you will see public_html when it is inside a user's home directory. In this case you may have a cgi-bin but more than likely, this type of account will share a cgi-bin and will just be linked to it.
 
Thanks guys for the response!! I appreciate the information you have shared! :)

Thanks Again!

Frank Soprano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top