LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2005, 03:38 PM   #1
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Rep: Reputation: 30
Configuring the tree structure of a web server with apache2??


Hello it's me again...
I have a web server using apache2, and would like to know a good way to organize my directory structure of my website...
any ideas???

Thanks once again for any help!!!
 
Old 06-29-2005, 03:55 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I don't know if this is the best way but it works for me,I set documentroot for /var/www/html
then make directorys from there
/var/www/html/forum
/var/www/html/themes
/var/www/html/screenshots
/var/www/html/dotfiles
and on and on
is that what you meant?
 
Old 06-30-2005, 11:00 AM   #3
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
Yes thanks that's one o the things i meant.

But now one other thing, which is the configuration file for the apache2 and how do i change the default directory in it?

Thanks once again!!!!
 
Old 06-30-2005, 02:08 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Different distro's sometimes do it a little different,what distro are you going to use for the web server?
 
Old 06-30-2005, 02:15 PM   #5
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
I'm using SuSE 9.2
 
Old 06-30-2005, 02:27 PM   #6
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
Hurray i've got it!!!

my problem was in the "default_server.conf" file in the 2 lines that follow
DocumentRoot "/srv/www/htdocs"
<Directory /srv/www/htdocs">

all i needed to do is chanche the route of the 2 lines for the ones i wanted.


thanks for the help!!!!!
 
Old 06-30-2005, 02:28 PM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I found this for later;
http://www.novell.com/documentation/...konf.sysconfig
 
Old 06-30-2005, 03:47 PM   #8
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 162

Original Poster
Rep: Reputation: 30
Thank you very much, i'll have a look at it for later use...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How2 let apache2 forward the request to another web-server on another machine boomy Linux - Software 9 12-04-2005 03:50 PM
Perl/Linux: Syncronize tree structure on network kenneho Programming 1 11-04-2005 04:42 AM
Apache2, MySQL & PHP Web Server. FTP Needed! Bobson Linux - Networking 4 02-07-2005 04:25 PM
Preserving directory tree structure /etc/fstab Hikito Linux - Newbie 1 09-11-2004 04:07 PM
Recommendation for webpage tree structure Alan Powell Linux - Newbie 1 04-06-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration