IIS dan Apache hidup rukun dalam 1 pc

Setting yang dirubah dalam Apache

  • Edit file C:\xampp\apache\conf\httpd.conf 
  • Cari bagian :

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 0.0.0.0:80
#Listen [::]:80
Listen 81

  • Rubah ke port berapa aja selain 80, karena IIS secara default ke port 80.
  • Cari bagian :

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName localhost:81

  • Rubah dari port ServerName ke berapa aja. Karena IIS default ke port 80
  • Edit file C:\xampp\apache\conf\extra\httpd-ssl.conf
  • Cari bagian :

#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
# Listen directives: “Listen [::]:443” and “Listen 0.0.0.0:443”
#
#Listen 0.0.0.0:443
#Listen [::]:443
Listen 442

  • Rubah port Listen dari 443.
  • Selesai

 


About this entry