apache服务器的配置

时间:2016-11-15 06:00:34

标签: apache tomcat

我有一个apache服务器,我的索引html文件看起来像 index-en.html,index-fr.html

这是一个配置

#
# Configure the DocumentRoot
#
DocumentRoot "/usr/lib/suite/utilities/proxy/web"

AddLanguage en .en
AddLanguage zh-CN .zh-CN
AddLanguage ja .ja
AddLanguage de .de
LanguagePriority en

<Directory "/usr/lib/suite/utilities/proxy/web">
        Options +MultiViews
        DirectoryIndex index.html
        AllowOverride None
        Order allow,deny
        Allow from all
#
# Force clients to reload index file - no caching
#
  <Files "index*.html">
    <ifModule mod_headers.c>
      Header unset ETag
      Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0"
      Header set Pragma "no-cache"
      Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
    </ifModule>
  </Files>
</Directory>

Alias /ui "/usr/lib/tomcat-web-app/webapps/ui"
<Directory "/usr/lib/tomcat-web-app/webapps/ui">
        Options None
        DirectoryIndex index.html
        AllowOverride None
        Order allow,deny
        Allow from all
        ExpiresDefault "access plus

找到localhost / ui我收到此错误:

  Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

如何更正配置我的apache配置。感谢

0 个答案:

没有答案