Skip to content

Instantly share code, notes, and snippets.

@QGB
Created February 21, 2019 03:44
Show Gist options
  • Save QGB/2d0e79475c3fd512ae02de3da12c018c to your computer and use it in GitHub Desktop.
Save QGB/2d0e79475c3fd512ae02de3da12c018c to your computer and use it in GitHub Desktop.
/phpstudy/server/httpd/conf/httpd.conf
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used. If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
ServerRoot "/phpstudy/server/httpd"
#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs
#
# 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 12.34.56.78:80
Listen 1006
#80
#
<VirtualHost *:1006>
DocumentRoot "/phpstudy/www"
</VirtualHost>
<Directory "/phpstudy/www">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment