LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure a web server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-a-web-server-698031/)

rajaguru14 01-17-2009 08:43 PM

How to configure a web server
 
How to configure a web server , with multiple root directories
and using Redirect

Mancino_Russell 01-17-2009 10:07 PM

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

nathacof 01-17-2009 11:14 PM

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

rsciw 01-18-2009 12:38 AM

Quote:

Originally Posted by Mancino_Russell (Post 3412518)
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.

lleb 01-18-2009 12:52 AM

http://jms1.net

search around his site, plenty of good info there.

servat78 01-18-2009 06:03 PM

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

jhwilliams 01-18-2009 07:18 PM

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.

John VV 01-18-2009 07:32 PM

i just bookmark
http://httpd.apache.org/docs/2.2/
http://dev.mysql.com/doc/
http://www.php.net/docs.php
http://www.phpmyadmin.net/home_page/docs.php
http://awstats.sourceforge.net/
http://www.perl.org/docs.html ( needed by awstats )


All times are GMT -5. The time now is 11:59 AM.