Skip to content

Instantly share code, notes, and snippets.

@styledev
Last active August 26, 2023 00:42
Show Gist options
  • Save styledev/36eb33880c3d3158beaef027b9656901 to your computer and use it in GitHub Desktop.
Save styledev/36eb33880c3d3158beaef027b9656901 to your computer and use it in GitHub Desktop.
A OS X Apache2 User Conf file to use with Dnsmasq
# 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.
#
# 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>
VirtualDocumentRoot /Users/<username>/Sites/%-2
ServerName test
ServerAlias *.test
UseCanonicalName off
SetEnv HOME /Users/<username>
</VirtualHost>
<VirtualHost *:443>
VirtualDocumentRoot /Users/<username>/Sites/%-2
ServerName test
ServerAlias *.test
UseCanonicalName off
SetEnv HOME /Users/<username>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /Users/<username>/dev-cert/pxl.crt
SSLCertificateKeyFile /Users/<username>/dev-cert/pxl.key
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment