服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

apache2configuration错误,将无限/index.html/附加到url

我使用安装了apache2和php7的Windows 10下的bash。 我为http:// localhost设置了一个虚拟主机映射到链接到物理窗口目录的符号文件。 当我打开url时,它无限地追加/index.html/到url,无论我input的是哪个子目录,无论url中有(现有)文件,如下所示: http://localhost/pub/videos/viewsSimilarities_movie.mp4 导致: http://localhost/pub/videos/viewsSimilarities_movie.mp4/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/ 和 http://localhost/pub/ 导致: http://localhost/pub/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/ 我的/etc/apache2/sites-available/localhost.conf: <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html DirectoryIndex index.html <Directory /var/www/html> # Options +Indexes +FollowSymLinks +MultiViews AllowOverride None Order allow,deny allow from all RewriteEngine Off </Directory> ErrorLog /var/log/apache2/localhost_error.log LogLevel debug CustomLog /var/log/apache2/localhost_access.log combined # phpMyAdmin default Apache configuration Alias /phpmyadmin /var/www/phpmyadmin <Directory /var/www/phpmyadmin> […]