apache 错误:未能在服务器上找到所请求地网址(URL)

nx7onnlm  于 2022-11-16  发布在  Apache
关注(0)|答案(1)|浏览(211)

我是新的typo3.安装后,登录到管理员后,我一直得到

Not Found 
The requested URL was not found on this server.

我已经在Typo 3 installation ended with URL Not Found上看到了解决方案,但不知道要修改哪个.htaccess文件。有很多.htaccess文件。
我面临着在前端和管理员都没有找到错误。我已经安装了最新版本。
我按照此处的说明安装了typo3
https://docs.typo3.org/m/typo3/tutorial-getting-started/11.5/en-us/Installation/Install.html#install

frebpwbc

frebpwbc1#

感谢@thomas-löffler指出这一点。
原来apache配置有问题。

AllowOverride All
       Order deny,allow
       Allow from all

别忘了之后重启apache。

$sudo vi /etc/apache2/httpd.conf

....
DocumentRoot "/Users/imac/ROOT/WebRoot"
<Directory "/Users/imac/ROOT/WebRoot">
    #   
    # 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 None
       
    AllowOverride All 
       Order deny,allow
       Allow from all 

    #   
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>
......

相关问题