我收到 proxy_fcgi:error] AH01071: 经常出现“主脚本未知”错误。谁能告诉我是什么导致了这个错误。到目前为止我了解到的是重写规则可能会导致这个问题。但不明白到底是什么原因导致了这个问题。以下是我的重写规则:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride None
Require all granted
# Setting rewrite rules
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule (.*) https://www.example.com/$1 [R=301,L]
# Show 404 error if there is any slash after page name
RewriteRule ^.+?\.(php|html?)/ - [L,R=404,NC]
# Custom Directory Index Files
DirectoryIndex index.php index.html
</Directory>
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
ServerAdmin …Run Code Online (Sandbox Code Playgroud) 在Bootstrap轮播中我想禁用鼠标悬停,使用数据属性是可能的.我也试图设置数据间隔,但两者都不起作用.但是它可以使用JavaScript,但我想通过使用数据属性来使用它.
选项可以通过数据属性或JavaScriptz传递.对于数据属性,将选项名称附加到data-,如data-interval =""
提前致谢.JavaScript -
<script type="text/javascript">
$(function(){
$("#myCarousel").carousel();
});
</script>
Run Code Online (Sandbox Code Playgroud)
HTML -
<div class="container">
<div id="myCarousel" class="carousel slide" data-interval="2000" data-pause="false">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item"><img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg" alt=""></div>
<div class="item"><img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-02.jpg" alt=""></div>
<div class="item"><img src="http://twitter.github.io/bootstrap/assets/img/bootstrap-mdo-sfmoma-03.jpg" alt=""></div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)