前提・実現したいこと
Apacheにて
Aliasを設定する
発生している問題・エラーメッセージ
Aliasを設定して、そこにアクセスすると403Forbiddenエラーが出る
該当のソースコード
httpd.conf
1<IfModule alias_module> 2 # 3 # Redirect: Allows you to tell clients about documents that used to 4 # exist in your server's namespace, but do not anymore. The client 5 # will make a new request for the document at its new location. 6 # Example: 7 # Redirect permanent /foo http://www.example.com/bar 8 9 # 10 # Alias: Maps web paths into filesystem paths and is used to 11 # access content that does not live under the DocumentRoot. 12 # Example: 13 # Alias /webpath /full/filesystem/path 14 # 15 # If you include a trailing / on /webpath then the server will 16 # require it to be present in the URL. You will also likely 17 # need to provide a <Directory> section to allow access to 18 # the filesystem path. 19 Alias /resources/ "C:/Servers/apahce-files/resource/" 20 <Directory "C:/Servers/apahce-files/resource"> 21 Require all granted 22 </Directory> 23 # 24 # ScriptAlias: This controls which directories contain server scripts. 25 # ScriptAliases are essentially the same as Aliases, except that 26 # documents in the target directory are treated as applications and 27 # run by the server when requested rather than as documents sent to the 28 # client. The same rules about trailing "/" apply to ScriptAlias 29 # directives as to Alias. 30 # 31 ScriptAlias /cgi-bin/ "C:/Servers/apache/Apache24/cgi-bin/" 32 33</IfModule>
補足情報(FW/ツールのバージョンなど)
Apache2.4です

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。