Bookmark and Share

previous version of Apache configuration files

Apache configuration file

$ cd /etc/apache2/users
$ touch "${USERNAME}.conf"
$ sudo chmod 644 "${USERNAME}.conf"

The configuration file "${USERNAME}.conf":

<Directory "/Users/XXX/Sites/">
  AllowOverride All
  Options Indexes MultiViews FollowSymLinks
  Require all granted
</Directory>

/etc/apache2/httpd.conf

LoadModule authz_host_module libexec/apache2/mod_authz_host.so
LoadModule authz_core_module libexec/apache2/mod_authz_core.so
LoadModule userdir_module libexec/apache2/mod_userdir.so
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
Include /private/etc/apache2/extra/httpd-userdir.conf
Include /private/etc/apache2/extra/httpd-vhosts.conf

/etc/apache2/extra/httpd-userdir.conf

Include /private/etc/apache2/users/*.conf

Restarting Apache server

$ sudo apachectl restart

References

blog comments powered by Disqus