Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. http://localhost/
  2.  
  3. Forbidden You don't have permission to access / on this server.
  4.  
  5. Cannot serve directory /users/yusuke3627/Sites/:
  6. No matching DirectoryIndex (index.php,index.html,index.html,index.php)found,
  7. and server-generated directory index forbidden by Options directive
  8.  
  9. LoadModule userdir_module libexec/apache2/mod_userdir.so #コメントアウト
  10. LoadModule alias_module libexec/apache2/mod_alias.so #コメントアウト
  11. LoadModule rewrite_module libexec/apache2/mod_rewrite.so #コメントアウト
  12. LoadModule php5_module libexec/apache2/libphp5.so #コメントアウト
  13.  
  14. DocumentRoot "/users/ユーザー名/Sites/"
  15. <Directory "/users/ユーザー名/Sites/">
  16. #
  17. # Possible values for the Options directive are "None", "All",
  18. # or any combination of:
  19. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  20. #
  21. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  22. # doesn't give it to you.
  23. #
  24. # The Options directive is both complicated and important. Please see
  25. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  26. # for more information.
  27. #
  28. Options FollowSymLinks Multiviews
  29. MultiviewsMatch Any
  30.  
  31. #
  32. # AllowOverride controls what directives may be placed in .htaccess files.
  33. # It can be "All", "None", or any combination of the keywords:
  34. # AllowOverride FileInfo AuthConfig Limit
  35. #
  36. AllowOverride All
  37.  
  38. #
  39. # Controls who can get stuff from this server.
  40. #
  41. Require all granted
  42.  
  43. Include /private/etc/apache2/extra/httpd-userdir.conf #コメントアウト
  44.  
  45. /apache2/users/ユーザ名
  46.  
  47. <Directory "/Users/ユーザ名/Sites/">
  48. AllowOverride All
  49. Options Indexes MultiViews
  50. Options +FollowSymLinks
  51. Require all granted
  52. </Directory>
  53.  
  54. ls -lah /users/yusuke3627/Sites/
  55.  
  56. httpd -t -D DUMP_CONFIG 2>/dev/null | grep "User "
  57. chown -R www:www /Users/yusuke3627/Sites/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement