Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress Permalink不';无法使用Ubuntu服务器AWS_Wordpress_Amazon Web Services_Ubuntu_Amazon Ec2 - Fatal编程技术网

Wordpress Permalink不';无法使用Ubuntu服务器AWS

Wordpress Permalink不';无法使用Ubuntu服务器AWS,wordpress,amazon-web-services,ubuntu,amazon-ec2,Wordpress,Amazon Web Services,Ubuntu,Amazon Ec2,我尝试了这个教程,但什么也没发生 apache2.conf目录代码 <Directory /> Options FollowSymLinks AllowOverride All Require all granted </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory>

我尝试了这个教程,但什么也没发生

apache2.conf目录代码

    <Directory />
    Options FollowSymLinks
    AllowOverride All
        Require all granted
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    #None
        AllowOverride All 
    Require all granted
</Directory>


<Directory "/var/www/html">

    Options Indexes FollowSymLinks


    AllowOverride All


    Require all granted
</Directory>

<Directory "/var/www/html/wordpress">

    Options Indexes FollowSymLinks

    AllowOverride All

    Require all granted
</Directory>


#<Directory /srv/>
#   Options Indexes FollowSymLinks
#   AllowOverride None
#   Require all granted
#</Directory>

选项如下符号链接
允许超越所有
要求所有授权
不允许超限
要求所有授权
选项索引跟随符号链接
#没有
允许超越所有
要求所有授权
选项索引跟随符号链接
允许超越所有
要求所有授权
选项索引跟随符号链接
允许超越所有
要求所有授权
#
#选项索引跟随符号链接
#不允许超限
#要求所有授权
#
当然,每次我做改变时,我总是重新启动apache


如果我不使用permalinks wordpress,根据文章,当Apache配置文件中未启用mod_rewrite模块时,就会出现这种情况。

非常感谢先生。