Monday, April 25, 2011

Notes for Web server setup

/etc/apache2$ ls
etc/apache2$ ls sites-available/
ls sites-endabled/
sites-enabled2 ls
sudo /etc/apache2/sites-enabled$ ln -s /etc/apache2/sites-available/default default
/etc/apache2/sites-enabled file:
/etc/apache2$ : file contain global config: TTL etc.
4 option in the file:
StartServers 5: 5 processes running when server starts
MinSpareServers 5: always have at least 5 process
MaxSpareServers 10: so between 5 and 10 client request to server
MaxClients 150: max request from client
MaxRequestPerChild 0: how many different request crash. 0 mean unlimited
Can define where the log to be. Usually end up in /var/log
httpd.conf file: contain all the user configurations
NameVirtualHost 10.0.2.80
Listen 80: listen to port 80 at this localHost IP address
next section: nested in if-else module
there are 2 different type of virtualHost: <1>NameVirtualHost http://www.kcc.edu/; <2> VirtualHost 192.168.1.10: only gonna be 1 does not matter what server they looking for (recommended)
/etc/apache2$ ls: list file in that directory.
/etc/apache2$ more httpd.conf to check the infor on the web content. give two different file for 2 different server (multi homing).
ex:
outline from the DNS book (take a look at chapter 23 on web hosting). just change the name of the servername. This is where you save the certificate to.
ls mod-available/: to see module available
ls -l mods-enabled/: check enabled ssl.
ls -s: to link file to label.

No comments:

Post a Comment