In this chapter you will be able:
-How to install webserver in suse linux server
-How to configure webserver
-How to hosting website and web application
-How to configure secure connection (SSL, Redirect)
2. PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION
TOLA.LENG-PC 1
CONTENTS
lAB INstruCtion.......................................................................................................................................................2
Windows .................................................................................................................................................................2
1. Install DNS Server ............................................................................................................................................3
2. Install Apaches Service.....................................................................................................................................7
3. Testing Apache by using ................................................................................................................................10
http://localhost .................................................................................................................................................10
http://IP_server.................................................................................................................................................10
4. Hosting muliple websites with sub-directory .................................................................................................11
5. Hosting Multiple websites by:........................................................................................................................13
A. Create Virtual IP.............................................................................................................................................13
B. Create CNAME(Aliase) ...................................................................................................................................20
6. Limit access to Webserver.............................................................................................................................23
I. Limit access by IP address.........................................................................................................................23
A. Order Allow,deny.................................................................................................................................23
B. Order Deny,allow .................................................................................................................................25
II. Authentication (username&Password).....................................................................................................27
A. Create Usersname & password by command line & Shell script................................................................27
B. Specific user name....................................................................................................................................28
C. Multiple users...........................................................................................................................................30
D. Group.......................................................................................................................................................33
9. Hosting PHP website with system (GLPI,Wordpress,Joomla)..............................................................................35
A. Create Database for each system .............................................................................................................35
B. Use CNAME for virtual host......................................................................................................................36
9. Configure SSL for secure connection all PHP website.........................................................................................63
A. Configure Redirect from port 443 to port 80, except GLPI.............................................................................63
3. PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION
TOLA.LENG-PC 2
LAB INSTRUCTION
WINDOWS
WEB Server
Network Address: 192.168.1.0/24
192.168.1.1 Router/Default Gateway
192.168.1.1 DNS Server
36. PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION
TOLA.LENG-PC 35
9. HOSTING PHP WEBSITE WITH SYSTEM
(GLPI,WORDPRESS,JOOMLA)
A. Create Database for each system
64. PASSERELLESNUMERIQUES CAMBODIA NETWORK ADMINISTRATION
TOLA.LENG-PC 63
9. CONFIGURE SSL FOR SECURE CONNECTION ALL PHP WEBSITE.
A. CONFIGURE REDIRECT FROM PORT 443 TO PORT 80,
EXCEPT GLPI.