...
Code Block |
---|
sudo vim /etc/apache2/httpd.conf |
And make sure the following lines are changedchanges on this file:
Step 1. Uncomment the following two lines. This is to enable loading "mod_include" and "mod_rewrite" modules.
Code Block |
---|
LoadModule include_module libexec/apache2/mod_include.so ... LoadModule rewrite_module libexec/apache2/mod_rewrite.so |
Step 2. Change "DocumentRoot" and "Directory" to your kafka-site repo directory; and change AllowOverride from "None" to "All".Uncommenting these two lines. This is to enable loading "mod_include" and "mod_rewrite" modules.
Code Block |
---|
# # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/Users/guozhang/Workspace/github/guozhangwang/kafka-site" <Directory "/Users/guozhang/Workspace/github/guozhangwang/kafka-site"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options FollowSymLinks Multiviews MultiviewsMatch Any # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted </Directory> |
Changing "DocumentRoot" and "Directory" to your kafka-site repo directory; and change AllowOverride from "None" to "All".
4. Reload Apache HTTP Service Homepage
...