Instalasi Apache di Windows

XAMPP

https-vhost.conf

# Virtual Hosts

#

# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your

# machine you can setup VirtualHost containers for them. Most configurations

# use only name-based virtual hosts so the server doesn't need to worry about

# IP addresses. This is indicated by the asterisks in the directives below.

#

# Please see the documentation at

# <URL:http://httpd.apache.org/docs/2.4/vhosts/>

# for further details before you try to setup virtual hosts.

#

# You may use the command line option '-S' to verify your virtual host

# configuration.

#

# Use name-based virtual hosting.

#

NameVirtualHost *:80

NameVirtualHost *:443

#

# VirtualHost example:

# Almost any Apache directive may go into a VirtualHost container.

# The first VirtualHost section is used for all requests that do not

# match a ##ServerName or ##ServerAlias in any <VirtualHost> block.

#

<VirtualHost *:80>

ServerAdmin info@openthinklabs.co.id

DocumentRoot "E:/ake/webapps/openthinklabs"

ServerName ake.openthinklabs.co.id

ServerAlias www.ake.openthinklabs.com

<Directory "E:/ake/webapps/openthinklabs">

Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride All

Require all granted

</Directory>

ErrorLog "logs/ake.openthinklabs.co.id-error.log"

CustomLog "logs/ake.openthinklabs.co.id-access.log" common

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

</VirtualHost>

<VirtualHost *:443>

ServerAdmin info@openthinklabs.co.id

DocumentRoot "E:/ake/webapps/openthinklabs"

ServerName ake.openthinklabs.co.id

ServerAlias www.ake.openthinklabs.com

<Directory "E:/ake/webapps/openthinklabs">

Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

SSLEngine on

SSLCertificateFile conf/ssl.crt/ake.openthinklabs.co.id.crt

SSLCertificateKeyFile conf/ssl.key/ake.openthinklabs.co.id.key

ErrorLog "logs/ake.openthinklabs.co.id-error.log"

BrowserMatch "MSIE [2-5]" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

# Per-Server Logging:

# The home of a custom SSL log file. Use this when you want a

# compact non-error SSL logfile on a virtual host basis.

CustomLog "logs/ake.openthinklabs.co.id_ssl_request.log" \

"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

Referensi