LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2009, 08:43 PM   #1
rajaguru14
LQ Newbie
 
Registered: Nov 2008
Posts: 23

Rep: Reputation: 15
How to configure a web server


How to configure a web server , with multiple root directories
and using Redirect
 
Old 01-17-2009, 10:07 PM   #2
Mancino_Russell
LQ Newbie
 
Registered: Jan 2009
Posts: 6

Rep: Reputation: 0
You probably want to check out how to work with apache's config files.

Look at /etc/apache2. There's a sites-enabled and sites-available in addition to apache2.conf. You place configurations for the sites in sites-available, and then use the a2ensite command to enable them (it makes a symlink in the sites-enabled dir).

this might help:
http://www.debian-administration.org/articles/412
 
Old 01-17-2009, 11:14 PM   #3
nathacof
Member
 
Registered: Aug 2004
Location: Bear, DE, USA
Distribution: Slackware 11, CentOS 5.2, Ubuntu
Posts: 124

Rep: Reputation: 17
First and foremost, I would recommend that you bookmark the following URL, Official Apache Web Server Site.

If you want to host multiple domains on a single IP, you would be interested in the VirtualHost directive.

Redirects can be accomplished with the Redirect Directive, or Mod_Rewrite.

ncoffield@hostmysite.com,
Server Engineer,
www.HostMySite.com

Last edited by nathacof; 01-17-2009 at 11:17 PM.
 
Old 01-18-2009, 12:38 AM   #4
rsciw
Member
 
Registered: Jan 2009
Location: Essex (UK)
Distribution: Home: Debian/Ubuntu, Work: Ubuntu
Posts: 206

Rep: Reputation: 44
Quote:
Originally Posted by Mancino_Russell View Post
You probably want to check out how to work with apache's config files.

Look at /etc/apache2. There's a sites-enabled and sites-available in addition to apache2.conf. You place configurations for the sites in sites-available, and then use the a2ensite command to enable them (it makes a symlink in the sites-enabled dir).

this might help:
http://www.debian-administration.org/articles/412
this would apply only if the Op uses Debian (maybe Ubuntu too, not sure how it looks there).

Other distros don't split up the files as Debian does.
 
Old 01-18-2009, 12:52 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
http://jms1.net

search around his site, plenty of good info there.
 
Old 01-18-2009, 06:03 PM   #6
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
Depending on the distro that use, there might be some GUI tool around that allows you to make all or most settings without accesing httpd.conf directly. Fedora has it usually (under Gnome) in the System/Administration/Services/HTTP menu.

By multiple root directories you assumably mean multiple webroot directories. Setting webroots is part of the generic settings of a virtual host. Howtoforge has a lot of tutorials aimed at webservices.

Debian

Last edited by servat78; 02-19-2009 at 11:06 AM.
 
Old 01-18-2009, 07:18 PM   #7
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Quote:
Other distros don't split up the files as Debian does.
I think this is actually quite a nice feature of the Debian package -- albeit non-conventional.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
LXer: Linux configure pound reverse proxy for Apache http / https web server LXer Syndicated Linux News 0 12-14-2007 07:20 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
How to Configure Apache Web server lonny Mandriva 6 11-27-2003 05:15 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

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