Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://localhost/
- Forbidden You don't have permission to access / on this server.
- Cannot serve directory /users/yusuke3627/Sites/:
- No matching DirectoryIndex (index.php,index.html,index.html,index.php)found,
- and server-generated directory index forbidden by Options directive
- LoadModule userdir_module libexec/apache2/mod_userdir.so #コメントアウト
- LoadModule alias_module libexec/apache2/mod_alias.so #コメントアウト
- LoadModule rewrite_module libexec/apache2/mod_rewrite.so #コメントアウト
- LoadModule php5_module libexec/apache2/libphp5.so #コメントアウト
- DocumentRoot "/users/ユーザー名/Sites/"
- <Directory "/users/ユーザー名/Sites/">
- #
- # 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
- Include /private/etc/apache2/extra/httpd-userdir.conf #コメントアウト
- /apache2/users/ユーザ名
- <Directory "/Users/ユーザ名/Sites/">
- AllowOverride All
- Options Indexes MultiViews
- Options +FollowSymLinks
- Require all granted
- </Directory>
- ls -lah /users/yusuke3627/Sites/
- httpd -t -D DUMP_CONFIG 2>/dev/null | grep "User "
- chown -R www:www /Users/yusuke3627/Sites/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement