0% found this document useful (0 votes)
105 views3 pages

Web Server COnfiguration

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 3

1. Navigate to Apache Website - (httpd.apache.

org)
2. Click on "Download" link for the latest stable version
3. After being redirect to the download page, Select: "Files for Microsoft Windows"
4. Select one of the websites that provide binary distribution (for example: Apache Lounge)
5. After being redirect to "Apache Lounge" website (https://www.apachelounge.com/download/),
Select: Apache x.x.xx Win64 link
6. After downloaded, unzip the file httpd-x.x.xx-Win64-VC15.zip into C:/
Step 2:
1. Open a command prompt: Run as Administrator
2. Navigate to directory c:/Apache24/bin
3. Add Apache as a Windows Service: httpd.exe -k install
4. In the event of the following error follow Step 3 otherwise jump to Step 4: "The program can't start
because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fix this
problem"
Step 3:
1. At Apache Lounge website, check the section "Apache 2.4 VC15 Windows Binaries and Modules" on
the main page
2. Download the file from the link vc_redist_x64 (I.e https://aka.ms/vs/15/release/VC_redist.x64.exe)
3. Install Visual C++ 2017 files
4. Repeat Step 2
Step 4:
1. Open Windows Services and start Apache HTTP Server
2. Open a Web browser and type the machine IP in the address bar and hit Enter

Starting Apache : Httpd.exe –k start

Stopping server : Httpd.exe –k stop

If service is not stopping manually the use below command for kill forcefully

1) Netstat –ano | findstr :80 or 443


2) Taskkill /PID <PID number as get from first command > /f

Configuration changes in Attached file

httpd-vhosts.conf httpd.conf

C:\Appache\httpd-2.4.41-win64-VS16\Apache24\conf\extra\https.conf

C:\Appache\httpd-2.4.41-win64-VS16\Apache24\conf\extra\httpd-vhost.conf
Changes in httpd.conf follow as below

3) SRVROOT should have qualified path of apache eg: C:\Appache\httpd-2.4.41-win64-


VS16\Apache24
4) Listen Should have *:80 / *:443, in case of 80 http request will be handled and in
case of 443 https request will be handled
5) All this moduled should be open/uncommect

LoadModule actions_module modules/mod_actions.so

LoadModule alias_module modules/mod_alias.so

LoadModule allowmethods_module modules/mod_allowmethods.so

LoadModule asis_module modules/mod_asis.so

LoadModule auth_basic_module modules/mod_auth_basic.so

LoadModule authn_core_module modules/mod_authn_core.so

LoadModule authn_file_module modules/mod_authn_file.so

LoadModule authz_core_module modules/mod_authz_core.so

LoadModule authz_groupfile_module modules/mod_authz_groupfile.so

LoadModule authz_host_module modules/mod_authz_host.so

LoadModule authz_user_module modules/mod_authz_user.so

LoadModule autoindex_module modules/mod_autoindex.so

LoadModule cgi_module modules/mod_cgi.so

LoadModule dir_module modules/mod_dir.so

LoadModule env_module modules/mod_env.so

LoadModule include_module modules/mod_include.so

LoadModule isapi_module modules/mod_isapi.so

LoadModule mime_module modules/mod_mime.so

LoadModule negotiation_module modules/mod_negotiation.so

LoadModule proxy_module modules/mod_proxy.so

LoadModule proxy_http_module modules/mod_proxy_http.so

LoadModule rewrite_module modules/mod_rewrite.so

LoadModule setenvif_module modules/mod_setenvif.so

6) ServerAdmin if required

7) ServerName which wil be override by virtual host


8) Changes like below

<Directory />
AllowOverride none
Require all denied
</Directory>

Changes in httpd-vhost.conf follow as below

9) <VirtualHost *:80> OR <VirtualHost *:443>

ServerName http://172.16.1.147:8090/

ProxyPass / http://172.16.1.147:8090/

ProxyPassReverse / http://172.16.1.147:8090/

</VirtualHost>

Proxypasas should have ip with port number

You might also like