LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-12-2004, 01:20 PM   #1
karupt
Member
 
Registered: Mar 2004
Distribution: Mandrake 10
Posts: 59

Rep: Reputation: 15
adding directorys to apache


I am having trouble figuring out how to add a directory in my http.conf file so that i can organize my website. I have everything in the site in the document root folder var/www/html but I cant figure out how to add another directory such as var/www/html/pictures to be seen as www.mysite.com/pictures and put an index.html in that folder. you know what i mean just to organize it a bit. my root folder is getting really big and I want to add directories and cant seem to find a definitive way to do it in my searches.

so what kind of lines need to be added to my conf file?

thanks
 
Old 08-12-2004, 01:33 PM   #2
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
you do not need to add a directory to your httpd.conf just add the pictures directory to your document root.

such as the directory structure below.

document root - Index.html
->Pictures - Index.html
-->image1.jpg
-->image2.jpg
->Files
-->file1.zip
-->file2.zip

to get to file1.zip it would be http://mysite.com/Files/file1.zip

Last edited by littleking; 08-12-2004 at 01:35 PM.
 
Old 08-12-2004, 01:49 PM   #3
karupt
Member
 
Registered: Mar 2004
Distribution: Mandrake 10
Posts: 59

Original Poster
Rep: Reputation: 15
well.. i thought i tried that already and it wouldnt allow access. ok then i will give that another try then... are there any little exceptions to that by any chance?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up user directorys with apache r_squared Linux - Networking 9 12-26-2004 10:07 AM
Adding a root directory for Apache mijohnst Linux - Software 9 02-09-2004 03:24 PM
Rehashing Apache and adding Modules to it pilot1 Linux - Newbie 1 11-08-2002 07:14 PM
Adding options to apache cli_man Linux - Software 9 06-05-2002 08:11 PM
Adding modules to apache.... morbo Linux - Networking 2 02-11-2002 06:40 PM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration