First of all, our system environment.
macOS Sierra Apache: 2.4.25(Unix)
Launch the server and
You can also access the
Forbiden You don't have permission to access/on this server.
The error log can be found in
Cannot save directory/users/Username/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 #CommentOut # LoadModule alias_module libexec/apache2/mod_alias.so #CommentOut # LoadModule rewrite_module libexec/apache2/mod_rewrite.so #Commentout # LoadModule php5_module libexec/apache2/libphp5.so #CommentOut DocumentRoot"/users/username/Sites/" <Directory"/users/username/Sites/"> # # Possible values for the Options direct are "None", "All", # or any combination of: # Indexes Included FollowSymlinksSymlinksifOwnerMatchExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # Doesn't give it to you. # # The Options direct is both compiled and imported.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 graded
I also created the username .conf and
/apache2/users/username <Directory"/Users/Username/Sites/"> AllowOverride All Options Indexes MultiViews Options + FollowSymlinks Require all graded </Directory>
It is included as .
Please tell me how to solve this problem because I am inexperienced.
Thank you for your cooperation.
You don't have permission to access/on this server.
does not directly refer to permissions on the file system.In some cases, this is a common message that occurs when Apache is stuck with access restrictions or permission restrictions.
In this case, the error message is
It says.Add Indexes to Options at httd.conf or create index.html or index.php.
It's a snake's foot, but
I don't know if I left a comment or not.If you commented out,
indicates the actual comment out, otherwise
Include/private/etc/apache2/extra/httpd-userdir.conf #Uncomment out
It would be better to make comments reflecting the actual situation.
First of all, it would be good to verify the existence and permission of the directory with the following command:
*Also, the ls command seems to pass, but I think it would be better to specify /Users instead of /users.
Since there is no permission, why don't you check the designated user with the following commands and change the owner of the document route?
httpd-t-DDUMP_CONFIG2>/dev/null | grep "User" chown-Rwww: www/Users/yusuke3627/Sites/
351 I have saved several codes written in python to a visual studio file.
362 To Limit Column Values to Strings in a String List Using sqlalchemy
353 I want to create an array of sequences from "1" to a specified number.
345 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2023 OneMinuteCode. All rights reserved.